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??
|
migrated from stackoverflow.com Dec 17 '09 at 19:08
|
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 |
|||||||||||||
|
|
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) |
|||
|
|
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 |
|||
|
|
|
If you are using "mintty" (the default terminal of Cygwin since end 2011), add the following in
and reopen your terminal |
|||
|
|