Opening a new terminal tab in OSX(Snow Leopard) with the opening terminal windows directory path

Viewed 19866

I've been Googling for a while looking for a simple way to do this, and I can't find one.

I have a custom terminal environment set up (zsh) with various aliases and functions to make things easier. One thing I keep running into is that I will quickly APPLE-t to create a new tab and then type a command relative to the path of the terminal window I was just in. This invariably fails because the path of the new tab is ~/ instead of whatever I was just using! Any ideas for a script to set the directory path of the new terminal tabs to the directory path of the opening tab?

Any help most appreciated.

Ian

5 Answers
Related