Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

save OLDPWD

  • Loading branch information...
commit 98c1c877969af54c0884f4fa4d158579551b5712 1 parent eda3baf
sshaw authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  bash_logout
  2. +3 −0  bash_profile
View
1  bash_logout
@@ -0,0 +1 @@
+[ -n "$OLDPWD" ] && echo $OLDPWD > ~/.oldpwd
View
3  bash_profile
@@ -30,7 +30,10 @@ fi
export LESS
export JAVA_HOME
+[ -f ~/.oldpwd ] && export OLDPWD=$(< ~/.oldpwd)
+
if which lsof > /dev/null
then
{ lsof -i :8808 || gem server --daemon --port 8808; } > /dev/null 2>&1
fi
+
Please sign in to comment.
Something went wrong with that request. Please try again.