Support dynamic title on urxvt

Closes #151
This commit is contained in:
Henrique Silva 2017-03-15 14:48:54 +01:00 committed by Matt Hamilton
parent dca1803ced
commit d97ff6bd07

View file

@ -51,7 +51,7 @@ fi
# more work probably needs to be done here to support multiplexers
if (($+ztermtitle)); then
case ${TERM} in
xterm*)
xterm*|*rxvt)
precmd() { print -Pn "\e]0;${ztermtitle}\a" }
precmd # we execute it once to initialize the window title
;;