ab63d240dadc964eee4fcdf14c0c46689f879ac8
- Author
- rl1k <38787215+rl1k@users.noreply.github.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Use source instead of dot to load autojump
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index c7da73b2302d9ac62036b0a058b5a54c78678709..17f01a9cf9881cd533e41599a7770b54f4f2d698 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -1,24 +1,24 @@
6 if [ $commands[autojump] ]; then # check if autojump is installed
7 if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
8- . $HOME/.autojump/etc/profile.d/autojump.zsh
9+ source $HOME/.autojump/etc/profile.d/autojump.zsh
10 elif [ -f $HOME/.autojump/share/autojump/autojump.zsh ]; then # another manual user-local installation
11- . $HOME/.autojump/share/autojump/autojump.zsh
12+ source $HOME/.autojump/share/autojump/autojump.zsh
13 elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.sh ]; then # nix installation
14- . $HOME/.nix-profile/etc/profile.d/autojump.sh
15+ source $HOME/.nix-profile/etc/profile.d/autojump.sh
16 elif [ -f /run/current-system/sw/share/autojump/autojump.zsh ]; then # nixos installation
17- . /run/current-system/sw/share/autojump/autojump.zsh
18+ source /run/current-system/sw/share/autojump/autojump.zsh
19 elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
20- . /usr/share/autojump/autojump.zsh
21+ source /usr/share/autojump/autojump.zsh
22 elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
23- . /etc/profile.d/autojump.zsh
24+ source /etc/profile.d/autojump.zsh
25 elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation
26- . /etc/profile.d/autojump.sh
27+ source /etc/profile.d/autojump.sh
28 elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
29- . /usr/local/share/autojump/autojump.zsh
30+ source /usr/local/share/autojump/autojump.zsh
31 elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
32- . /opt/local/etc/profile.d/autojump.sh
33+ source /opt/local/etc/profile.d/autojump.sh
34 elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.sh ]; then # mac os x with brew
35- . `brew --prefix`/etc/autojump.sh
36+ source `brew --prefix`/etc/autojump.sh
37 fi
38 else
39 echo 'Please install autojump to enable the plugin (https://github.com/wting/autojump)'