From d92f18e57ae12f37fa9cf330953b2711165083c8 Mon Sep 17 00:00:00 2001 From: Dmytro Serdiuk Date: Sun, 9 Feb 2020 12:24:19 +0200 Subject: [PATCH] Remove unsupported `-nw` option from Bash completion `-nw` was an alias for `--no-workflows` option. This alias does not exist in the Elegant Git for a while, so the Bash completion should not support it also. --- completions/git-elegant.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions/git-elegant.bash b/completions/git-elegant.bash index b1faea8..aae7191 100755 --- a/completions/git-elegant.bash +++ b/completions/git-elegant.bash @@ -6,10 +6,10 @@ _git_elegant() { local geops="--help --version --no-workflows" local gecops="--help --no-workflows" local offset=0 - if [[ ${COMP_WORDS[*]} =~ (--no-workflows)|(-nw) ]]; then + if [[ ${COMP_WORDS[*]} =~ --no-workflows ]]; then geops="" gecops="" - if [[ ${COMP_WORDS[COMP_CWORD-1]} =~ (--no-workflows)|(-nw) ]]; then + if [[ ${COMP_WORDS[COMP_CWORD-1]} =~ --no-workflows ]]; then offset=1 fi fi