From 2fd1cd66e4db2c9979d2d0d6f1953b3289ff4ba8 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 87c84a22..c9b4b683 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 ;;