Fix broken ssh on old zsh versions with st

This commit is contained in:
lhark 2016-03-30 15:23:21 +00:00
parent 85d29d1e29
commit 3873b18875

6
zshrc
View file

@ -62,13 +62,17 @@ alias minecraft="java -jar $HOME/.minecraft/launcher.jar"
alias redwm='cd ~/abs/dwm; updpkgsums; makepkg -fi --noconfirm; killall dwm' alias redwm='cd ~/abs/dwm; updpkgsums; makepkg -fi --noconfirm; killall dwm'
# Titre du terminal # Term specific hacks
case $TERM in case $TERM in
xterm*) xterm*)
preexec () { preexec () {
print -Pn "\e]0;$1 -- ${USER}@${HOST}\a" print -Pn "\e]0;$1 -- ${USER}@${HOST}\a"
} }
;; ;;
# Fix broken ssh with st
st*)
alias ssh='TERM=xterm ssh'
;;
esac esac