Add bash-it completion for version command

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
This commit is contained in:
Mike Fiedler
2017-09-29 17:15:14 -04:00
parent 71bda32dc0
commit 47041bc817

View File

@@ -65,7 +65,7 @@ _bash-it-comp()
prev="${COMP_WORDS[COMP_CWORD-1]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
chose_opt="${COMP_WORDS[1]}" chose_opt="${COMP_WORDS[1]}"
file_type="${COMP_WORDS[2]}" file_type="${COMP_WORDS[2]}"
opts="disable enable help migrate search show update" opts="disable enable help migrate search show update version"
case "${chose_opt}" in case "${chose_opt}" in
show) show)
local show_args="aliases completions plugins" local show_args="aliases completions plugins"
@@ -82,7 +82,7 @@ _bash-it-comp()
return 0 return 0
fi fi
;; ;;
update | search | migrate) update | search | migrate | version)
return 0 return 0
;; ;;
enable | disable) enable | disable)