Comment out aliases suprseded by rational-dot()
[abe:zshrc.git] / zsh.d / 55-cd
1 # -*- sh -*-
2
3 #-() { cd - }
4 -() { popd "$@" }
5 +() { pushd "$@" }
6 -1 -2 -3 -4 -5 -6 -7 -8 -9 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9() { pushd $0 }
7
8 # Don't type too much
9 alias   cd-='cd -'
10 alias   cd..='cd ..'
11
12 # Superseded by rationalise-dot()
13 #alias   ...='cd ../..'
14 #alias   ....='cd ../../..'
15
16 # Common typos
17 alias    vf=cd
18 alias    xs=cd
19
20 # autojump support
21 if [ -r /usr/share/autojump/autojump.sh ]; then
22     alias j > /dev/null && unalias j
23     .  /usr/share/autojump/autojump.sh
24 fi
25
26 # xd support
27 if whence xd > /dev/null; then
28     function xd() { cd $(command xd "$@") }
29 fi
30
31 # wcd support
32 if whence wcd > /dev/null; then
33     alias wd=wcd
34     function wcd() {
35         wcd.exec "$@"
36         . "${HOME}/bin/wcd.go"
37     }
38 fi