Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added a check if homebrew is installed, fixed #1050 #1308

Closed
wants to merge 1 commit into from

1 participant

@zauberpony

The autojump script assumes, that if the current system is no linux system, than it has to be a system using hombrew, so it does not even check, if "brew" is installed, this causing the error mentioned in #1050

@zauberpony zauberpony closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 6, 2012
  1. fixed #1050, Autojump plugin outputs errors under some users on non-H…

    Elmar Athmer authored
    …omebrew systems
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/autojump/autojump.plugin.zsh
View
2  plugins/autojump/autojump.plugin.zsh
@@ -3,7 +3,7 @@ if [ $commands[autojump] ]; then # check if autojump is installed
. /usr/share/autojump/autojump.zsh
elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
. /etc/profile.d/autojump.zsh
- elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
+ elif [[ -n $commands[brew] ]] && [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
. `brew --prefix`/etc/autojump
fi
fi
Something went wrong with that request. Please try again.