aboutsummaryrefslogtreecommitdiff
path: root/zshrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-08-17 21:33:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-08-17 21:33:27 -0300
commitaf42545b123c676136c10196e3af3e325cb5cb98 (patch)
tree1c5c4fbd6b51c26e21df70cd7e32e2847ec70490 /zshrc.dot.link
parent3b2b450ba34d4a157087b3e6b686ac15dc94aa32 (diff)
downloadprofile-af42545b123c676136c10196e3af3e325cb5cb98.tar.gz
profile-af42545b123c676136c10196e3af3e325cb5cb98.tar.bz2
Use TTY instead of WINDOWID at zshrc powerline block
Diffstat (limited to 'zshrc.dot.link')
-rw-r--r--zshrc.dot.link4
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