completion: Add --silent and -s completion

pull/1626/head
Noah Gorny 2020-07-14 18:05:51 +03:00
parent 3f2c6e79ee
commit 2fd1cd66e4
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
;;