From af42545b123c676136c10196e3af3e325cb5cb98 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Aug 2018 21:33:27 -0300 Subject: Use TTY instead of WINDOWID at zshrc powerline block --- zshrc.dot.link | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zshrc.dot.link') 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 -- cgit v1.2.3