10.7: Disable folder drop-down in Terminal menu bar

Mar 30, '12 07:26:00AM

Contributed by: robg

In 10.7, Apple changed Terminal to include a drop-down path icon in the window's title bar, similar to what you get in Finder and many other applications.

While some may like this, the problem is that it actually changes the window's title, as seen by applications (such as our own window manager, Moom). For instance, run this command in 10.7's Terminal...

osascript -e "tell application \"Terminal"\ to return name of window 1"

...and you'll see the current folder reflected in the window title. If you'd rather not have the path there, the fix is simple. Just add this command to your .profile file (or whatever file you use to init your Terminal windows):

unset PROMPT_COMMAND

Save the .profile file, close and open a new Terminal window, and you'll see that the folder drop-down has vanished from the window title.

Comments (1)


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