some window naming for tmux
This commit is contained in:
parent
0b80f59127
commit
2ac396d59a
3 changed files with 8 additions and 10 deletions
4
zshrc
4
zshrc
|
@ -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@%s\007" $USER ${HOST%%.*}
|
||||
printf "\033]0;%s\007" ${HOST%%.*}
|
||||
;;
|
||||
screen*|tmux*)
|
||||
printf "\033k%s@%s\033\\" $USER ${HOST%%.*}
|
||||
printf "\033k%s\033\\" ${HOST%%.*}
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue