Open terminal in a given directory

Apr 22, '01 12:42:13AM

Contributed by: robg

It's been noted here before that holding down command-option and dragging an item to the dock will force an application to try to open whatever you drop on it.

Tonight, I noticed a really cool variant on that trick. If you'd like to open a new terminal window in a given directory, simply drag that folder to the Terminal icon in the dock while holding down command-option. Terminal will open a new window, leaving any that you have alone, and 'cd' into the folder that you dropped on it. The first line you see is your prompt with the path showing that you're in the directory you dropped! I love the subtle niceties in X!

Comments (2)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010422004213449