Possible Duplicate:
Set the title of the terminal window to the current directory

I have many open Terminal shell windows open in Mac OSX.. Just right click on the icon for terminal and choosing one is not easy, because they all have the same title.

Is there a way to change the title of a terminal window so it would always be the current directory the shell is running from?

Thanks.

link|improve this question
feedback

closed as exact duplicate by fideli, Diago Oct 29 '10 at 16:42

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

found this:

http://www.tech-recipes.com/rx/705/mac-os-x-change-the-terminal-window-title/

link|improve this answer
oh that's a good direction, thanks. but how do I set it up so every "cd" leads to an echo command in this form? I tried doing alias cd=some_shell_script here_that_cds_and_echos, but it does not work. – osxshell Oct 29 '10 at 16:38
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.