You are not logged in.
Hi,
I'd like to change the window title string of XFCE Terminal Application to "current directory path string"
What is the configuration file?
Regards.
Last edited by koro (2007-06-13 03:11:33)
Offline
You have to make your shell do that. Assuming you use bash, go and google for something like "bash change window title". (I'd give you an example, but I use zsh, and don't put that info in my title bars.)
Offline
try this in ~/.bashrc, modifying for what you want:
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
that will give user@host: /dir
Offline
Thank you ataraxia,
With your advice, I went to google, and I could find a topic about escape sequence of bash.
That was almost same as your zsh script.
First, I edited my .bashrc file:
export PROMPT_COMMAND='echo -ne "\033]0; $HOSTNAME: $PWD\007" '
It was fine.
Next, I wrote your script in my.bashrc file .
It was fine, too.
Now I could change title string of my terminal application.
Thank you very much.
Best regards.
Offline