on Fri, Nov 21, 2003 at 03:43:00PM -0500, Matt Price (matt.price@utoronto.ca) wrote:
> Hey folks,
>
> lists.debian.org seems to be down, so I couldn't search the list
> archives properly; sorry if this has been discussed ad nauseum.
>
> my .bashrc has the following code in it to set the title of xterms:
>
> # If this is an xterm set the title to user@host:dir
> case $TERM in
> xterm*)
> PROMPT_COMMAND='echo -ne "\033]0; ${USER}: ${PWD}\007"'
> ;;
> *)
> ;;
> esac
>
> ---------------------
>
> I'd like to include other information in the xtitle as well, like,
> for instance, basename of process running in the xterm -- and ideally,
> more complicated stuff like the name of the buffer currently being
> edited in a terminal-bound session of xemacs.
>
> ANyone know a way to handle this automatically? I've come across
> various scripts (usually in csh!) that cna be executed from the
> command line, but no solutions that change the window title
> automatically.
>
> Is there any hope?
Bash Promt HOWTO
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
Vote Bush in '04: It's a no-brainer!
Attachment:
pgpaMOSf8jukx.pgp
Description: PGP signature