1
0
Fork 0

quite devious: if prefix, p is used, tell ssh to use custom TERM value; also more features for zsh

This commit is contained in:
Von Random 2018-06-21 14:57:05 +03:00
parent ee89591386
commit ae4693451c
2 changed files with 3 additions and 3 deletions

4
zshrc
View file

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