Merge pull request #1626 from NoahGorny/update-to-stable-or-unstable

bash-it update to stable or dev
This commit is contained in:
Noah Gorny
2020-10-16 14:16:06 +03:00
committed by GitHub
5 changed files with 134 additions and 38 deletions

View File

@@ -87,7 +87,16 @@ _bash-it-comp()
COMPREPLY=( $(compgen -W "${doctor_args}" -- ${cur}) )
return 0
;;
migrate | reload | search | update | version)
update)
if [[ ${cur} == -* ]];then
local update_args="-s --silent"
else
local update_args="stable dev"
fi
COMPREPLY=( $(compgen -W "${update_args}" -- ${cur}) )
return 0
;;
migrate | reload | search | version)
return 0
;;
enable | disable)