]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-completion.bash
bash-completion: Whitespace fix
[notmuch] / notmuch-completion.bash
index 868e9cde9d7a3756a61750a83836954b9387f04f..ff0a24d60cbfe5f095ba41dfdd6a07e270db2b86 100644 (file)
@@ -1,4 +1,4 @@
-# Bash completion for notmutch
+# Bash completion for notmuch
 #
 # Copyright © 2009 Carl Worth
 #
@@ -52,12 +52,12 @@ _notmuch()
     COMPREPLY=()
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
-    if [ "$COMP_CWORD" = "1" ]; then
-       COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
+    if [[ "$COMP_CWORD" == "1" ]]; then
+        COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
     fi
 
-    if [ $prev = "help" ] && [ "$COMP_CWORD" = "2" ]; then
-       COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
+    if [[ $prev = "help" && "$COMP_CWORD" == "2" ]]; then
+        COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
     fi
 }
 complete -o default -o bashdefault -F _notmuch notmuch