Re: How to set xterm/gnome-terminal Title
Re: How to set xterm/gnome-terminal Title
- Subject: Re: How to set xterm/gnome-terminal Title
- From: Sao X <email@hidden>
- Date: Thu, 20 Feb 2003 21:32:31 +0800
Hi Marc,
Try 'adding' to your prompt the following expression:
%{\033]0; ... \007%}
Then, you could insert the abbreviation for the currrent path "%/" :
%{\033]0;%/\007%}
and it will put the current working path into the title bar.
Cheers...
Sao
On Thursday, February 20, 2003, at 06:35AM, Brandon Peskin <email@hidden> wrote:
>On Wednesday, February 19, 2003, at 02:12 PM, Marc Colosimo wrote:
>
>> On various linux boxes that I use, either the xterm or gnome-terminal
>> title is set to the host and the path. I found the following how to
>> <http://www.tldp.org/HOWTO/mini/Xterm-Title.html>, but it doesn't work
>> for tcsh. It prints out the escape codes for some reason. I have my
>> mac set it up to use /usr/share/tcsh/examples (10.2.3) and I have fink
>> installed.
>>
>> Does anyone have a suggestion or has gotten this to work? I find it
>> hard to keep tract of my windows with out it.
>>
>> Thanks,
>> Marc
>
>
>This is what I use with bash:
>
>In my .bashrc:
># Set the basic prompt
>PS1='\h:\w\$ '
># Now lets get spiffy and put it in the title bar too
>if echo $TERM | egrep -iq 'xterm|vt100'; then
>PS1='\[\033]0;\h:\w\$\007\]'$PS1
>fi
>
>This gives me the machine:working directory$ in the title bar. If I'm
>root, then the $ is replaced with #.
>
>Hope this helps.
>--
>Brandon Peskin A-Link Network Services
>email@hidden 408-720-6162 support
>Lead Network Engineer 408-328-4610 direct
>_______________________________________________
>x11-users mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
>X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
>Report issues, request features, feedback: http://developer.apple.com/bugreporter
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.