Skip to content

Commit

Permalink
Remove unsupported -nw option from Bash completion
Browse files Browse the repository at this point in the history
`-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.
  • Loading branch information
extsoft committed Feb 9, 2020
1 parent 62a7db9 commit d92f18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/git-elegant.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d92f18e

Please sign in to comment.