diff options
author | David Phillips <david@sighup.nz> | 2016-10-16 21:48:36 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2016-10-16 21:48:36 +1300 |
commit | 5097a207d686cfd449834c89429c40e1d488f684 (patch) | |
tree | 815ef5434979ceb73e19c48dab9506d6403c3c44 /bashrc | |
parent | 2372158b5843491b16b1069e1b64b5e370665ee8 (diff) | |
download | dotfiles-5097a207d686cfd449834c89429c40e1d488f684.tar.xz |
cd is pushd wrapper
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -53,7 +53,16 @@ alias egrep="egrep --color=auto" alias xpdf="xpdf -cont" alias feh="feh --magick-timeout=0" alias xclip="xclip -selection c" +alias pd=popd +cd() { + if [ $# -eq 0 ] ; then + d=$HOME + else + d=$@ + fi + pushd "$d" >/dev/null +} # u=rwx,g=,o= umask 077 |