1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
$Id: README,v 1.2 1999/09/27 22:00:02 michaelj Exp $
README file for xttitle
I've had this code kicking around for years. It's one of the first
things I compile and install on any UNIX box I work on, since I find it
SO useful for my X-Windows environment. It's very simple, it just sends
some escape characters to standard out to change the title and
optionally the icon name of your xterm window.
I use this by creating an alias in my .tcshrc file like the example
below. Make sure the xttitle binary is in your path. The $cwd variable
gets updated with your current working directory.
#!/bin/tcsh
set host=`hostname`
set user=`whoami`
switch ( $term )
case xterm:
alias cd 'chdir \!*;xttitle $user@$hostname\:$cwd $hostname'
breaksw
default:
echo "Not using xterm settings"
breaksw
endsw
If you have any questions or comments, send them to:
Michael Jarvis
<michael@jarvis.com>
http://www.jarvis.com
|