Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Use Emoticons to distinguish shells Apps
Now that Mac OS X supports Emoji, they can be added to the title of a terminal window to help distinguish shell windows.

One application that has been updated in Mac OS X Lion is the venerable which finally supports 256 colors. While playing around with Emoji characters, I realised they were quite useful to mark different terminals. I typically have multiple windows open with local and remote shells, along with a python interpreter. Previously I used the background colour of the terminal to distinguish the various contexts, but now I also add an relevant Emoji in the title.

To add the character to a Terminal window's title, just go into Terminal » Preferences, select the Settings Icon and the Window tab. In the Title item, you can enter the emoticon in the title text by going to Edit » Special Characters and select the Emoji set. Double-click the character you want to insert.

I posted some examples and an image on my blog.

[crarko adds: I tested this, and it works as described. This did make me smile.]
  • Currently 4.00 / 5
  You rated: 5 / 5 (5 votes cast)

10.7: Use Emoticons to distinguish shells | 2 comments | Create New Account
Click here to return to the '10.7: Use Emoticons to distinguish shells' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Or use a shell prompt
Authored by: gidds on Sep 02, '11 12:13:49PM

Another way to distinguish shells/machines is by the prompt. My prompts are in reverse video, and so a different colour stands out.

(It's not that hard: add something like "\[`tput setaf N; tput rev`\]" to the start of your PS1 prompt, where N is 0 for black, 1 for red, etc; and "\[`tput sgr0`\]" at the end to reset. tput generates the right escape codes, and \[...\] ensures the shell doesn't get the cursor position confused. That's in bash; other shells may do it differently.)

Advantages are that it works whichever OS and terminal program you log in from; and it adapts as you log in and out of different machines, so as you scroll back it's clear which machines you were on.


[ Reply to This | # ]
10.7: Use Emoticons to distinguish shells
Authored by: Michelasso on Sep 04, '11 06:02:20AM

It's cool, but can I make it dynamic? In the sense that it will use a different icon depending on the process running. Like bash, vim, more etc.

[ Reply to This | # ]