Replaced reload section with proper function.

Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
This commit is contained in:
Piotr Rogoża
2018-04-17 23:48:33 +02:00
parent b1dbf2f7e0
commit 89d1661d23
8 changed files with 33 additions and 42 deletions

View File

@@ -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 reload"
opts="disable enable help migrate reload search show update version"
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 | reload)
migrate | reload | search | update | version)
return 0
;;
enable | disable)