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 ``