How to make terminal "title" to be set dynamically to pwd
TRINH Minh Hieu
mhtrinh at gmail.com
Wed Sep 14 12:20:47 CEST 2011
> Date: Wed, 14 Sep 2011 09:34:15 +0200
> From: Fran?ois Colonna <f.colonnacesari at free.fr>
> To: xfce at xfce.org
> Subject: How to make terminal "title" to be set dynamically to pwd
> Message-ID: <1315985655.3220.10.camel at debian.fecamp>
> Content-Type: text/plain; charset="UTF-8"
>
> Hello
>
> I did not find out how to make any terminal "title" to be set
> dynamically to the result of pwd command.
>
> By "title" I mean the text at the top of the terminal window not the
> prompt.
>
> By "dynamically set" I mean, that when I move to a new directory with cd
> command, the title will be automatically modified to the new directory
> name.
>
> Thanks
> Fran?ois Colonna
>
>
Put this on your .bashrc :
export PROMPT_COMMAND='echo -ne "\033]0;`pwd`\007"'
Normally, the window title (and not the prompt) will look like : "Terminal -
/root/Public"
Regards,
mhtrinh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20110914/82ca53a1/attachment.html>
More information about the Xfce
mailing list