diff options
-rw-r--r-- | notmuch-completion.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-completion.bash b/notmuch-completion.bash index 4255717..b4335fd 100644 --- a/notmuch-completion.bash +++ b/notmuch-completion.bash @@ -52,11 +52,11 @@ _notmuch() COMPREPLY=() prev=${COMP_WORDS[COMP_CWORD-1]} - if [ "$COMP_CWORD" = "1" ]; then + if [[ "$COMP_CWORD" == "1" ]]; then COMPREPLY=( $(compgen -W "${commands}" -- ${current}) ) fi - if [ $prev = "help" ] && [ "$COMP_CWORD" = "2" ]; then + if [[ $prev = "help" && "$COMP_CWORD" == "2" ]]; then COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) ) fi } |