1
0
Fork 0

window titles for tmux

This commit is contained in:
Von Random 2018-06-28 19:58:52 +03:00
parent 7cfec077c1
commit adeeeb95de
3 changed files with 16 additions and 12 deletions

4
zshrc
View file

@ -76,10 +76,10 @@ PROMPT4='%b%f+%N:%i%(!.%F{red}.%F{black})>%f%b '
precmd.title() {
case $TERM in
st*|xterm*|rxvt*)
printf "\033]0;%s\007" ${HOST%%.*}
printf '\033]0;%s\007' ${HOST%%.*}
;;
screen*|tmux*)
printf "\033k%s\033\\" ${HOST%%.*}
printf '\033k%s\033\' ${HOST%%.*}
;;
esac
}