From: Mike Frysinger Date: Fri, 7 Dec 2012 20:04:01 +0000 (-0500) Subject: new pd helper X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=06ac7c77ee7ed86b33647425647161b79bf3bce3;p=home.git new pd helper --- diff --git a/.profile.d/aliases.sh b/.profile.d/aliases.sh index 928893e..b6d8fe1 100644 --- a/.profile.d/aliases.sh +++ b/.profile.d/aliases.sh @@ -30,6 +30,14 @@ alias xine='xine -l' alias wol-vapier='wakeonlan -i 192.168.1.255 00:25:22:64:19:79; wakeonlan -i 192.168.0.255 00:25:22:64:19:79' +pd() { + if [[ $# -eq 0 ]] ; then + popd + else + pushd "$@" + fi +} + if [[ ${TERM} != "dumb" ]] ; then alias grep='grep --colour=auto -d skip' alias ls='ls --color=auto'