Skip to content

Commit

Permalink
check if autojump is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kalos committed Jan 10, 2012
1 parent 955825b commit 5809a47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/autojump/autojump.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
. /usr/share/autojump/autojump.zsh
elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
. /etc/profile.d/autojump.zsh
elif (`command -v brew >/dev/null`); then # mac os x with brew
if [ -f `brew --prefix`/etc/autojump ]; then
if [ $commands[autojump] ]; then # check if autojump is installed
if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
. /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
. `brew --prefix`/etc/autojump
fi
fi

0 comments on commit 5809a47

Please sign in to comment.