X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-completion.bash;h=b4335fdf31fc93cc54d62179220352d5020c27b6;hb=4033d87fddff62cfd615899991955867659ade01;hp=868e9cde9d7a3756a61750a83836954b9387f04f;hpb=024cdf8e3c2e6dd54687c814703e800788b2eebc;p=notmuch diff --git a/notmuch-completion.bash b/notmuch-completion.bash index 868e9cde..b4335fdf 100644 --- a/notmuch-completion.bash +++ b/notmuch-completion.bash @@ -1,4 +1,4 @@ -# Bash completion for notmutch +# Bash completion for notmuch # # Copyright © 2009 Carl Worth # @@ -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 }