Setting the title of PuTTY window.

2010-02-04 1 min read Gnome Linux
Setting the title for PuTTY window is quite a simple trick. The trick is to set the PS1 with a escape sequence. When the PS1 is set with the escape sequence the variable will set the title window also. And not only can this trick be used in PuTTY but even on gnome-terminal to set the title dynamically. You can use this in the .bashrc or .bash_profile file to do it whenever you are starting the terminal. Continue reading

change the terminal title dynamically in X11

2010-01-09 1 min read bash Gnome Linux
I was actually looking for this for quite sometime. Some years back in my bashrc was the proper setting for setting the terminal title when I did a cd, and I had completely forgotten how to do it. So today I searched quite a few commands the environment variables for doing the same and found it again. Here it is (Just put this in your bashrc or bash_profile): export PROMPT_COMMAND=’echo -ne ”\033]0;`pwd`”; echo -ne ”\007”’ Continue reading