Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: Why use a script? -hostname only?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Why use a script? -hostname only?
Authored by: sjk on May 02, '02 09:30:36PM
Generalized tcsh example:

alias xtitle printf '"\e]2;\!*\a"'

[There are backslashes before the 'e', '!', and 'a' characters in the argument to printf; this avoids using non-printable characters in the alias]

alias cwdcmd xtitle '$cwd'

Replace the argument to xtitle with whatever you want displayed in the Terminal title bar when changing directories in the shell, like:

alias cwdcmd xtitle '`dirs`'

Run:

unalias cwdcmd
xtitle anything

... to set the title bar to something that doesn't change.


[ Reply to This | # ]