From c54dc0b3e4a9a3e83d4ace473aa2ea6c55c9f90e Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Tue, 14 Jul 2020 18:05:51 +0300 Subject: [PATCH] completion: Add --silent and -s completion --- completion/available/bash-it.completion.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/completion/available/bash-it.completion.bash b/completion/available/bash-it.completion.bash index 5b96a90e..4fdd72d6 100644 --- a/completion/available/bash-it.completion.bash +++ b/completion/available/bash-it.completion.bash @@ -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 ;;