Automatically set title on iTerm tabs

If like me you use iTerm for your terminal sessions, this is the tips to dynamically set the tab title. As I’m using the bash shell, the tab title can be automatically set with the PROMPT_COMMAND variable. You can set this variable in /etc/profile or in your .bashrc Mine is like this : export PROMPT_COMMAND=’echo …