Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add support for autojump installed with MacPorts #615

Closed
wants to merge 1 commit into from

2 participants

@wjkoh
@wjkoh wjkoh Add support for autojump installed with MacPorts
* Use hash command to suppress an error message when Homebrew is not installed
* Newly added part comes from https://trac.macports.org/browser/trunk/dports/sysutils/autojump/Portfile
fbc86a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 15, 2011
  1. @wjkoh

    Add support for autojump installed with MacPorts

    wjkoh authored
    * Use hash command to suppress an error message when Homebrew is not installed
    * Newly added part comes from https://trac.macports.org/browser/trunk/dports/sysutils/autojump/Portfile
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugins/autojump/autojump.plugin.zsh
View
5 plugins/autojump/autojump.plugin.zsh
@@ -1,3 +1,6 @@
-if [ -f `brew --prefix`/etc/autojump ]; then
+if hash brew &> /dev/null && [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
+elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then
+ export FPATH="$FPATH:/opt/local/share/zsh/site-functions/"
+ . /opt/local/etc/profile.d/autojump.sh
fi
Something went wrong with that request. Please try again.