I have several servers that have the same prefix in their name: mail.servername
. When I have several sessions open (I use PuTTY from Windows 7), it is a minor PITA to figure out which one is which since PuTTY names the windows user@mail
and the command line displays user@mail:~$
for all of them.
Is there a way to have the full server name displayed? I don't have the option of changing the servers' names.
Think what you are looking for for changing the PuTTY window title is this:
PuTTY allows the server to send xterm control sequences which modify the title of the window in mid-session.
From the putty manual.How to actually do it, point your favorite text editor to
~/.bashrc
Locate the lines that say:Then change:
to:
Save and be happy. If you wanna test it before doing the final change, use
export PS1='all the stuff'
Use this command
to have the server name displayed in the Putty window title bar.