Do not repeat completion
This commit is contained in:
parent
cb2068c901
commit
e886442e73
@ -1,9 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
_7D2D_manage_completions()
|
_7D2D_manage_completions() {
|
||||||
{
|
if [ "${#COMP_WORDS[@]}" != "2" ]; then
|
||||||
COMPREPLY=($(compgen -W "backup install kill list start update" "${COMP_WORDS[1]}"))
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
COMPREPLY=($(compgen -W "backup install kill list start update" "${COMP_WORDS[1]}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _7D2D_manage_completions 7D2D-Manage
|
complete -F _7D2D_manage_completions 7D2D-Manage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user