diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-08-17 21:33:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-08-17 21:33:27 -0300 |
commit | af42545b123c676136c10196e3af3e325cb5cb98 (patch) | |
tree | 1c5c4fbd6b51c26e21df70cd7e32e2847ec70490 | |
parent | 3b2b450ba34d4a157087b3e6b686ac15dc94aa32 (diff) | |
download | profile-af42545b123c676136c10196e3af3e325cb5cb98.tar.gz profile-af42545b123c676136c10196e3af3e325cb5cb98.tar.bz2 |
Use TTY instead of WINDOWID at zshrc powerline block
-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 |