![15574322796_841f1d7bf8_bash](https://www.gray.me.uk/wp-content/uploads/2016/05/15574322796_841f1d7bf8_bash-e1462687750317.jpg)
If you are logged into multiple servers it is quite useful to have CLEAR text in the title bar showing which server is which.
In your ~/.bash_profile
PROMPT_COMMAND="echo -ne \"\033]0;$1 ns1.myserver.com (Old)\007\""
OR
PROMPT_COMMAND="echo -ne \"\033]0;$1 ns1.myserver.com (New)\007\""
Now either log out and back in or run this command
source ~/.bash_profile
Leave a Reply