title: osx Terminal new tab in same directory
body: <p>I am not going to be the first to ask this but I have been trying to solve this googleing a lot and none of the resources has been useful. My problem is simple (to explain), I want to open a new tab in the same directory in the Terminal app. Now, every tab I open is opened in my ~ directory. I have also tried with iTerm2 but still the same problem. This is my .bash_profile: </p>
  
  <pre><code># Git configuration
  parse_git_branch() {
      git branch 2&gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
  }
  
  # Command line prompt
  PS1='[\t] \[\e[0;32m\]\u@\h\[\e[m\]:\w \[\e[0;34m\]$(parse_git_branch)\[\e[m\]&gt; '
  
  # virtualenvwrapper
  source /usr/local/bin/virtualenvwrapper.sh
  
  # alias for mysql
  alias mysql=/usr/local/mysql/bin/mysql
  alias mysqladmin=/usr/local/mysql/bin/mysqladmin
  alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start'
  alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop'
  
  export PATH=$PATH:/usr/local/mysql/bin
  </code></pre>
  
  <p>Thank you very much for your help in advance.</p>