Set title OSX tab

If you’re like me and you have one terminal window in OSX with a lot of tabs. It is handy to see which tab holds which connection to a which server.

The terminal title can easily be set to something you like.

Example: Set to the hostname of the server:

echo -n -e "\033]0;`hostname`\007"

Example: Set to something else

echo -n -e "\033]0;something else\007"

Just add this to the .profile file in you home directory and the shell appears with your line set in the tab title.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>