Open New Terminal Tip
I tend to open up several terminals when working on a project, so I usually want them to start in the same directory I’ve been working with. Stick this in your ~/.bash_profile to have your new terminal windows automatically cd to the directory you last used.
export PROMPT_COMMAND='echo `pwd` > ~/.lastpwd'
cd `cat ~/.lastpwd ``
If you found this post helpful, please consider sharing to your network. I'm also available to help you be
successful with your distributed systems! Please reach out
if you're interested in working with me, and I'll be happy to schedule a free one-hour consultation.