[ale] window title

Michael Ivey ivey at gstv.Gsu.EDU
Wed Jan 15 14:35:25 EST 1997


I found this somewhere...it uses escape codes to do it in an xterm...don't
know if it works for rxvt too.

% cat .profile

case $TERM in
	xterm)echo "]2;Current directory:  `pwd`"
	cd()
	{
		if [ -z "$1" ]; then
			builtin cd ~
		elif true ; then
			builtin cd $1
		fi
		echo "]2;Current directory:  `pwd`"
	}
	;;
esac



Michael Ivey <ivey at gsu.edu>       BOFH, Georgia State Television
Phone: (404) 651-4788             http://gstv.gsu.edu/~ivey 
Pager: (404) 485-7662             down, not across
          
"Did you know that if you're an intellectual, you'll probably end 
    up in Hell for it?"  -Rev. Jonathon Bell






More information about the Ale mailing list