There are wrapper scripts out there -- at least my own ;-) -- which
are available even on systems where no "real" brew is available, and
therefore this wrapper errors our when called. So not only check for
brew's existence, but if it is working when checking for plugins.
# Make sure that "brew(1)" is installed
(( $+commands[brew] )) || return 1
+if [[ -n "$AXZSH_PLUGIN_CHECK" ]]; then
+ # Make sure brew command is working
+ brew --version >/dev/null 2>&1 || return 1
+fi
+
eval "$(brew shellenv)"
for dir (