about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <david.morgan@gmail.com>2016-04-12 09:46:35 -0400
committerDavid Morgan <david.morgan@gmail.com>2016-04-12 09:46:35 -0400
commit1caeaff967a7576c92434ee4f1524f3630de0e30 (patch)
treee0a9e8c343a89bc57dd3a35c2270e6b6562a41e4
parent23b2a71c4f6f0d1e954183c717db2e11693ba70a (diff)
downloaddotfiles-1caeaff967a7576c92434ee4f1524f3630de0e30.tar.gz
Use pushd and popd in chdir function
-rw-r--r--.bashrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 3df8f26..75246bb 100644
--- a/.bashrc
+++ b/.bashrc
@@ -339,10 +339,14 @@ function chdir()
 {
 
     if [ $# -eq 0 ]; then
-        cd -
+        #cd -
+        echo -n "popd: "
+        popd
     else
-        cd $@
-        pwd
+        #cd $@
+        #pwd
+        echo -n "pushd: "
+        pushd $@
     fi
 }
 
@@ -360,7 +364,7 @@ alias hadd='run_cmd $(history -p ^diff^add)'
 
 alias dogs='run_cmd docker ps; run_cmd docker logs -f $(docker ps|sed 1d|awk '"'"'{print $1;}'"'"')'
 alias undock='sudo umount `mount|grep -o "/var/lib/docker/aufs/mnt/[a-z0-9]*"`'
-alias gp="chdir ${VIEW_DIR} ; run_cmd git pull ; chdir"
+#alias gp="chdir ${VIEW_DIR} ; run_cmd git pull ; chdir"
 
 
 function esvapi()