How can i set the window title in Bash? I do know that in win-batch it is TITLE, but what's it in bash??
feedback
|
migrated from stackoverflow.com Dec 17 '09 at 19:08
This question came from our site for professional and enthusiast programmers.
|
Here is a nice function to do it:
Put that in your ~/.bashrc, then type "title whatever" to set the title. If you want to get rid of the hostname, remove "(on $HOSTNAME)". Edit: make sure to | |||||||||||||
feedback
|
|
We need more information: The answer will depend on what terminal you're using, not what shell. Is this in an xterm? An rxvt? A cygwin window on windows? Etc. (danben's answer works for xterms, and probably for rxvt terminals) | |||
feedback
|
|
I have this VT100 escape sequence defined in
For my home directory it displays Works with CYGWIN and PuTTY terminal sessions. I usually don't run X, but when I did it worked fine with XTerm. Read | |||
|
feedback
|