4ef29c9f1883acecb638a64ddb1eff8618312cdc

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Fix homebrew path location

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index 17f01a9cf9881cd533e41599a7770b54f4f2d698..3434fb37b4bedfae5135ce1c068c34208ea36e49 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -17,8 +17,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
 6     source /usr/local/share/autojump/autojump.zsh
 7   elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
 8     source /opt/local/etc/profile.d/autojump.sh
 9-  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.sh ]; then # mac os x with brew
10-    source `brew --prefix`/etc/autojump.sh
11+  elif [ $commands[brew] -a -f $(brew --prefix)/etc/profile.d/autojump.sh ]; then # mac os x with brew
12+    source $(brew --prefix)/etc/profile.d/autojump.sh
13   fi
14 else
15   echo 'Please install autojump to enable the plugin (https://github.com/wting/autojump)'