Skip to content

Instantly share code, notes, and snippets.

@rbobillot
Created January 7, 2014 23:26
Show Gist options
  • Save rbobillot/8308821 to your computer and use it in GitHub Desktop.
Save rbobillot/8308821 to your computer and use it in GitHub Desktop.
# ----- cd to OLDPWD @ each new Term session
function cd()
{
builtin cd $@
pwd > ~/.old_pwd
}
if [ -f ~/.old_pwd ];then
cd `cat ~/.old_pwd`
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment