MacOS – Disable Terminal’s title bar directory on Lion

macosterminal

i was wondering if there was any way of disabling the folder location on the titlebar of the built-in terminal application on Lion. I mean:

terminal titlebar

Any ideas ?

Best Answer

It's done in /etc/bashrc. You probably don't want to mess with that file. You can override what's done there by creating a file called .profile in your home directory that contains the following line:

unset PROMPT_COMMAND

This will remove the directory in the title bar after you restart Terminal.