(English) Use Emoticons to distinguish shells

Python shell with Snake Emoji in the Title

One application that has been updated in Mac OS X Lion is the venerable terminal.app which finally supports 256 colours. 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 a relevant emoji in the title. Among the useful characters for this use

  • Shell 🐚
  • Snake (Python) 🐍
  • Camel 🐫
  • Computer 💻

To add the character to a terminal’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.

Comments (6)

anirulWednesday, der 3. August 2011 at 15:48

Fun mais c est quoi le truc pour assigner d’un titre a ton terminal? Ca manque un peu d’explications.

ThiasFriday, der 5. August 2011 at 23:53

J’ai ajouté des explications…

ChrisFriday, der 2. September 2011 at 20:10

Nice trick. For those who use a lot of tabs, you can also use the emoji in your bash PROMPT_COMMAND. E.g.

PROMPT_COMMAND=’echo -ne “33]0;

ChrisFriday, der 2. September 2011 at 20:11

hmm, the comment system ate all of the special characters. Just search this for PROMPT_COMMAND to get the correct syntax:

https://github.com/ex-nerd/scripts/blob/master/.bashrc

KenTuesday, der 6. September 2011 at 15:56

Very interesting. I noticed that your home directory is not in your terminal titlebar. Did you get rid of it? I’d love to do that.

KenWednesday, der 7. September 2011 at 15:54

Ah, all I did was comment out the PROMPT_COMMAND line in /etc/bashrc and the cwd in the Terminal title bar is gone.

Leave a comment

Your comment

Page optimized by WP Minify WordPress Plugin