Skip to content

Putting current directory in xterm/rxvt title

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.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*