(Several) dozens of terminal windows/tabs open at the same time? Me too. Gets confusing trying to find a particular shell sometimes. Snow Leopard introduced a feature that allows you to set a specific title for each of your Terminal windows, but to do it you have to use the mouse/GUI. Ugh.
Here is a solution that not only is mouse/GUI free, it actually works across platforms. Source (or add) the following into your .bashrc: