Title of tha Xfterm [4.0.6]

Josh Howard jrh at zeppelin.net
Tue Nov 2 23:45:04 CET 2004


> Le Tue, 02 Nov 2004 11:42:56 +0100
> Rakotomandimby Mihamina <mihamina at mail.rktmb.org> s'exprimait:
> I use zsh ...
> Is the 'printf ...' the way to set it ?

for zsh:

chpwd() {
    [[ -t 1 ]] || return
    case $TERM in
    xterm-color|xterm) print -Pn "\e]2;%M : %~\a"
    esac
}

chpwd() is used by cd, so it'll update whenever you use cd or pushd.


-- 
Josh Howard <jrh at zeppelin.net>



More information about the Xfce mailing list