I've tried:
echo -ne "\e]2;%n@%m: %~\a"
which according to http://www.faqs.org/docs/Linux-mini/Xterm-Title.html, should:
- ESC]2;stringBEL -- Set window title to string
and:
%n expands to $USERNAME
%m expands to hostname up to first '.'
%~ expands to directory, replacing $HOME with '~'
Am I doing something wrong, or perhaps this isn't implemented?
Chris
--
Chris Sutcliffe
http://emergedesktop.org
This is for zsh, the bash equivalent is:
echo -ne "\e]2;${USER}@${HOSTNAME}: ${PWD}\a"
sorry for the noise.