]> arthur.barton.de Git - ax-zsh.git/commitdiff
homebrew: Define the result code explicitly
authorAlexander Barton <alex@barton.de>
Fri, 7 Apr 2017 12:49:24 +0000 (14:49 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 7 Apr 2017 12:49:24 +0000 (14:49 +0200)
The return code shouldn't depend on the availability of the ZSH
completion scripts!

plugins/homebrew/homebrew.zprofile

index 51fd2dffacee5f74ee959057baf227eee120b90c..5885efdb57b3720f80f9e10c7a502db94924e984 100644 (file)
@@ -2,7 +2,9 @@
 # homebrew.zprofile -- Setup Homebrew Package Manager
 
 # Make sure that "brew(1)" is installed
-(( $+commands[brew] )) || return
+(( $+commands[brew] )) || return 1
 
 [[ -d "/usr/local/share/zsh-completions" ]] \
        && axzsh_fpath+=(/usr/local/share/zsh-completions)
+
+return 0