]> git.wh0rd.org - home.git/commitdiff
new pd helper
authorMike Frysinger <vapier@gentoo.org>
Fri, 7 Dec 2012 20:04:01 +0000 (15:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 7 Dec 2012 20:04:01 +0000 (15:04 -0500)
.profile.d/aliases.sh

index 928893eba28764d34344f9dcf10436e7dc3abeeb..b6d8fe185580789b071b56cf088c48ab2d3c00f8 100644 (file)
@@ -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'