Skip to content

Commit

Permalink
Fix typo in bash completion, add help completion (#86)
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <[email protected]>
  • Loading branch information
mabelzhang authored Apr 27, 2022
1 parent cf35e42 commit 20bcaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/ign.bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function _ign

# searching for the command
for ((i=1; $i<=$COMP_CWORD; i++)); do
if [[ ${COMPWORDS[i]} != -* ]]; then
if [[ ${COMP_WORDS[i]} != -* ]]; then
cmd="${COMP_WORDS[i]}"
break
fi
Expand All @@ -27,7 +27,7 @@ function _ign
fi

else
opts=$(ign --commands)
opts="$(ign --commands) help"
fi

COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
Expand Down

0 comments on commit 20bcaf9

Please sign in to comment.