From: Alexander Barton Date: Fri, 7 Apr 2017 12:49:24 +0000 (+0200) Subject: homebrew: Define the result code explicitly X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=3c6f6c81997b48bebbeb4ea717ff7ab71e7c00d3 homebrew: Define the result code explicitly The return code shouldn't depend on the availability of the ZSH completion scripts! --- diff --git a/plugins/homebrew/homebrew.zprofile b/plugins/homebrew/homebrew.zprofile index 51fd2df..5885efd 100644 --- a/plugins/homebrew/homebrew.zprofile +++ b/plugins/homebrew/homebrew.zprofile @@ -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