My zsh configuration
git clone https://mcol.xyz/code/zshrc
Log | Files | Refs | Submodules | README

commit 42a7ed32af826f9d77180ea317dc00b8e08e7c9c
parent 3c33b7b339bf646bf5c2efd1b81c6a6460f4decb
Author: mcol <mcol@posteo.net>
Date:   Sat,  9 Feb 2019 00:49:50 +0000

check is_ssh

Diffstat:
Mzshrc | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/zshrc b/zshrc @@ -35,3 +35,9 @@ so $ZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh TRAPWINCH () { zle && zle -R } + +if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then + export is_ssh=true +else + export is_ssh=false +fi