completion: Add --silent and -s completion

pull/1578/head
Noah Gorny 2020-07-14 18:05:51 +03:00 committed by phreakocious
parent 076b453764
commit c54dc0b3e4
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
;;