summaryrefslogtreecommitdiff
path: root/plugins/autojump
diff options
context:
space:
mode:
authorRuben Di Battista <rubendibattista@users.noreply.github.com>2018-06-20 23:27:38 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-06-20 23:27:38 +0200
commit6c1dab232033b79534d4583a4d6f40340bdf334c (patch)
treec2af04b0b11bcb37823be13794906c2ff50e2b9e /plugins/autojump
parenta0b8eab5f0cd339082c1fe33d7bcfc34e38918b5 (diff)
downloadzsh-6c1dab232033b79534d4583a4d6f40340bdf334c.tar.gz
zsh-6c1dab232033b79534d4583a4d6f40340bdf334c.tar.bz2
zsh-6c1dab232033b79534d4583a4d6f40340bdf334c.zip
Fix autojump sourcing on OSX with Macports (#4801)
* Fix autojump sourcing on OSX with Macports The last version of autojump available on Macports does not have anymore different shell scripts (.sh, .zsh, .bash ...) to be sourced but just one autojump.sh that takes care of that located at /opt/local/etc/profile.d/autojump.sh fix # 4625 * Fix bug with macports autojump on OSX.
Diffstat (limited to 'plugins/autojump')
-rw-r--r--plugins/autojump/autojump.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
index 7339fad9e..c0af67631 100644
--- a/plugins/autojump/autojump.plugin.zsh
+++ b/plugins/autojump/autojump.plugin.zsh
@@ -15,8 +15,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
. /etc/profile.d/autojump.sh
elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
. /usr/local/share/autojump/autojump.zsh
- elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
- . /opt/local/etc/profile.d/autojump.zsh
+ elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
+ . /opt/local/etc/profile.d/autojump.sh
elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.sh ]; then # mac os x with brew
. `brew --prefix`/etc/autojump.sh
fi