...
|
...
|
@@ -1,5 +1,9 @@
|
1
|
|
-if [ -f /opt/local/etc/profile.d/autojump.sh ]; then
|
2
|
|
- . /opt/local/etc/profile.d/autojump.sh
|
3
|
|
-elif [ -f `brew --prefix`/etc/autojump ]; then
|
4
|
|
- . `brew --prefix`/etc/autojump
|
|
1
|
+if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
|
|
2
|
+ . /usr/share/autojump/autojump.zsh
|
|
3
|
+elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
|
|
4
|
+ . /etc/profile.d/autojump.zsh
|
|
5
|
+elif (`command -v brew >/dev/null`); then # mac os x with brew
|
|
6
|
+ if [ -f `brew --prefix`/etc/autojump ]; then
|
|
7
|
+ . `brew --prefix`/etc/autojump
|
|
8
|
+ fi
|
5
|
9
|
fi
|