summaryrefslogtreecommitdiff
path: root/plugins/autojump
diff options
context:
space:
mode:
authorrl1k <38787215+rl1k@users.noreply.github.com>2018-05-28 21:57:49 +0200
committerMarc Cornellà <marc.cornella@live.com>2019-04-09 19:18:37 +0200
commitab63d240dadc964eee4fcdf14c0c46689f879ac8 (patch)
tree142699343ab3d4f47fd055ba556929b08eab4318 /plugins/autojump
parent5e9ee67f2b7e53c9e4bb5a0220276a97a22ca0e6 (diff)
downloadzsh-ab63d240dadc964eee4fcdf14c0c46689f879ac8.tar.gz
zsh-ab63d240dadc964eee4fcdf14c0c46689f879ac8.tar.bz2
zsh-ab63d240dadc964eee4fcdf14c0c46689f879ac8.zip
Use source instead of dot to load autojump
Diffstat (limited to 'plugins/autojump')
-rw-r--r--plugins/autojump/autojump.plugin.zsh20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
index c7da73b23..17f01a9cf 100644
--- a/plugins/autojump/autojump.plugin.zsh
+++ b/plugins/autojump/autojump.plugin.zsh
@@ -1,24 +1,24 @@
if [ $commands[autojump] ]; then # check if autojump is installed
if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
- . $HOME/.autojump/etc/profile.d/autojump.zsh
+ source $HOME/.autojump/etc/profile.d/autojump.zsh
elif [ -f $HOME/.autojump/share/autojump/autojump.zsh ]; then # another manual user-local installation
- . $HOME/.autojump/share/autojump/autojump.zsh
+ source $HOME/.autojump/share/autojump/autojump.zsh
elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.sh ]; then # nix installation
- . $HOME/.nix-profile/etc/profile.d/autojump.sh
+ source $HOME/.nix-profile/etc/profile.d/autojump.sh
elif [ -f /run/current-system/sw/share/autojump/autojump.zsh ]; then # nixos installation
- . /run/current-system/sw/share/autojump/autojump.zsh
+ source /run/current-system/sw/share/autojump/autojump.zsh
elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
- . /usr/share/autojump/autojump.zsh
+ source /usr/share/autojump/autojump.zsh
elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
- . /etc/profile.d/autojump.zsh
+ source /etc/profile.d/autojump.zsh
elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation
- . /etc/profile.d/autojump.sh
+ source /etc/profile.d/autojump.sh
elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
- . /usr/local/share/autojump/autojump.zsh
+ source /usr/local/share/autojump/autojump.zsh
elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
- . /opt/local/etc/profile.d/autojump.sh
+ source /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
+ source `brew --prefix`/etc/autojump.sh
fi
else
echo 'Please install autojump to enable the plugin (https://github.com/wting/autojump)'