diff options
-rw-r--r-- | zshrc.dot.link | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zshrc.dot.link b/zshrc.dot.link index 59faa3f..d873658 100644 --- a/zshrc.dot.link +++ b/zshrc.dot.link @@ -63,6 +63,8 @@ __git_files () { } # Powerline -if [ ! -z "$WINDOWID" ] && [ "$TERM" != "linux" ] && [ -e '/usr/share/powerline/bindings/zsh/powerline.zsh' ]; then +# We're using $TTY as $WINDOWID won't be available on SSH sessions +#if [ ! -z "$WINDOWID" ] && [ "$TERM" != "linux" ] && [ -e '/usr/share/powerline/bindings/zsh/powerline.zsh' ]; then +if ! echo $TTY | grep -q '^/dev/tty' && [ "$TERM" != "linux" ] && [ -e '/usr/share/powerline/bindings/zsh/powerline.zsh' ]; then . /usr/share/powerline/bindings/zsh/powerline.zsh fi |