My zsh configuration
git clone https://github.com/m-col/zshrc
Files | Refs | Readme

Commit 42a7ed32af826f9d77180ea317dc00b8e08e7c9c
Parent: 3c33b7b339bf646bf5c2efd1b81c6a6460f4decb
Author: mcol <mcol@posteo.net>
Date: 2019-02-09 00:49:50 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2019-02-09 00:49:50 +0000

check is_ssh

zshrc Modified

@@ -35,3 +35,9 @@
 TRAPWINCH () {
     zle &&  zle -R
 }
+
+if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
+    export is_ssh=true
+else
+    export is_ssh=false
+fi