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"
> 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
> 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
> 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 -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xfce