From 06ac7c77ee7ed86b33647425647161b79bf3bce3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 7 Dec 2012 15:04:01 -0500 Subject: [PATCH] new pd helper --- .profile.d/aliases.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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' -- 2.39.5