Stops zsh from trying to set the terminal color scheme over ssh

This commit is contained in:
Jonathan Hodgson 2019-08-02 19:47:24 +01:00
parent bacb273f81
commit d5f3455733

View file

@ -87,9 +87,11 @@ source $ZSH/oh-my-zsh.sh
source ~/.dotfiles/shells/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if [ ! -n "$SSH_CLIENT" ] && [ ! -n "$SSH_TTY" ]; then
if [ -L $HOME/.dotfiles/shells/zsh/current-color-scheme ]; then
source $HOME/.dotfiles/shells/zsh/current-color-scheme
fi
fi
TRAPWINCH(){
zle && {zle reset-prompt; zle -R}