Added additional parameter for bash-it: reload
Added creating an alias if command does not exist
This commit is contained in:
@@ -65,7 +65,7 @@ _bash-it-comp()
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
chose_opt="${COMP_WORDS[1]}"
|
||||
file_type="${COMP_WORDS[2]}"
|
||||
opts="disable enable help migrate search show update version"
|
||||
opts="disable enable help migrate search show update version reload"
|
||||
case "${chose_opt}" in
|
||||
show)
|
||||
local show_args="aliases completions plugins"
|
||||
@@ -82,7 +82,7 @@ _bash-it-comp()
|
||||
return 0
|
||||
fi
|
||||
;;
|
||||
update | search | migrate | version)
|
||||
update | search | migrate | version | reload)
|
||||
return 0
|
||||
;;
|
||||
enable | disable)
|
||||
|
||||
Reference in New Issue
Block a user