Too many Terminal windows, all alike ... for every account you care about, add the following into the .tcshrc init file:
setenv WHOAMI `whoami`As usual, ^[ stands for ESC, 0x1B, ^G is BELL, 0x07 [ed: enter in vi by typing Control-V then either Control-Open Bracket or Control-G.]
setenv HOSTNAME `hostname -s`
if ($?TERM_PROGRAM) then
if ("$TERM_PROGRAM" == "Apple_Terminal") then
alias precmd 'echo -n "^[]2;[$WHOAMI@$HOSTNAME]^G"'
endif
endif
[root@localhost] -- emacs -- -1PS. Don't believe KB Article 107106; Apple's interpretation of $?TERM_PROGRAM is whishful thinking under tcsh.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030123052303392