a19d1d1f05281fc286991ff85010d6d431ae1d58
- Author
- ZHANG Biao <bbbiao@gmail.com>
- Committer
- ZHANG Biao <bbbiao@gmail.com>
- Date
Message
autojump installed from github has mv the autojump.zsh to $HOME/.autojump/share/autojump/autojump.zsh
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index 652d22696acfdbb109b185c5baae06ccad2d19c8..4cf0364013b2655dac01bf250d063ff2d7b2d1b5 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -1,6 +1,8 @@
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+ elif [ -f $HOME/.autojump/share/autojump/autojump.zsh ]; then # another manual user-local installation
10+ . $HOME/.autojump/share/autojump/autojump.zsh
11 elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installation
12 . $HOME/.nix-profile/etc/profile.d/autojump.zsh
13 elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package