xterm zsh title update

This commit is contained in:
Loic Nageleisen 2011-09-28 13:42:29 +02:00
parent 62c2106fb5
commit 528198e997

8
zshrc
View file

@ -19,6 +19,14 @@ chpwd() {
# NOOP # NOOP
;; ;;
esac esac
case $TERM in
xterm*)
print -Pn "\e]0;%n@%m: %~\a"
;;
*)
# NOOP
;;
esac
} }
chpwd # call in right now chpwd # call in right now