How to make terminal "title" to be set dynamically to pwd
f.colonnacesari at free.fr
Wed Sep 14 14:49:25 CEST 2011
Le mercredi 14 septembre 2011 à 12:20 +0200, TRINH Minh Hieu a écrit :
> 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
> 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"
Thanks it works fine.
More information about the Xfce