Add new udpate command to Bash it completion
parent
1dba074024
commit
5c6de8ca67
|
|
@ -53,7 +53,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="help show enable disable"
|
opts="help show enable disable update"
|
||||||
case "${chose_opt}" in
|
case "${chose_opt}" in
|
||||||
show)
|
show)
|
||||||
local show_args="plugins aliases completions"
|
local show_args="plugins aliases completions"
|
||||||
|
|
@ -61,10 +61,13 @@ _bash-it-comp()
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
help)
|
help)
|
||||||
local help_args="plugins aliases completions"
|
local help_args="plugins aliases completions update"
|
||||||
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
update)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
enable | disable)
|
enable | disable)
|
||||||
if [ x"${chose_opt}" == x"enable" ];then
|
if [ x"${chose_opt}" == x"enable" ];then
|
||||||
suffix="available-not-enabled"
|
suffix="available-not-enabled"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue