Re: New xterm title setting
On Mon, 20 Jun 2005, Tong wrote:
> Date: Mon, 20 Jun 2005 14:43:53 -0400
> From: Tong <mlist4suntong@yahoo.com>
> To: debian-user <debian-user@lists.debian.org>
> Subject: New xterm title setting
> Resent-Date: Mon, 20 Jun 2005 14:01:19 -0500 (CDT)
> Resent-From: debian-user@lists.debian.org
>
> Hi,
>
> I used to set my own xterm titles, but after the recent upgrade, the
> title of my xterm and rxvt are changed to uid@host:/pwd.
>
> How can use back to my own? (I think some system files have been changed,
> I didn't do any relevant changes before and after the upgrade).
>
> thanks
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
You can put this i .bashrc
if
#If this is an xterm set the title to user@host:dir
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
fi
/ernst-magne
Reply to: