completion: Add --silent and -s completion

pull/1621/head
Noah Gorny 2020-07-14 18:05:51 +03:00
parent d29e4b4b4d
commit 72cb9965b0
1 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,11 @@ _bash-it-comp()
return 0
;;
update)
local update_args="stable dev"
if [[ ${cur} == -* ]];then
local update_args="-s --silent"
else
local update_args="stable dev"
fi
COMPREPLY=( $(compgen -W "${update_args}" -- ${cur}) )
return 0
;;