From http://www.ibiblio.org/pub/Linux/docs/HOWTO/Xterm-Title
Here’s mine (tcsh):
switch ($TERM)
case “xterm*”:
case “rxvt*”:
case “screen*”:
set prompt=”%{\033]0;%n@%m:%~\007%}tcsh%# ”
breaksw
default:
set prompt=”tcsh%# ”
breaksw
endsw
Instead of casing screen, I should probably check for $DISPLAY. Someday.
Post a Comment