Merge pull request #659 from edubxb/update-command

Add update subcommand
This commit is contained in:
Nils Winkler
2016-02-10 08:16:33 +01:00
3 changed files with 74 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ _bash-it-comp()
prev="${COMP_WORDS[COMP_CWORD-1]}"
chose_opt="${COMP_WORDS[1]}"
file_type="${COMP_WORDS[2]}"
opts="help show enable disable"
opts="help show enable disable update"
case "${chose_opt}" in
show)
local show_args="plugins aliases completions"
@@ -61,10 +61,13 @@ _bash-it-comp()
return 0
;;
help)
local help_args="plugins aliases completions"
local help_args="plugins aliases completions update"
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
return 0
;;
update)
return 0
;;
enable | disable)
if [ x"${chose_opt}" == x"enable" ];then
suffix="available-not-enabled"