From 79febcd0b3d737265f6dc0ac96efef93c27c137c Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 30 Mar 2014 21:35:33 +0200 Subject: [PATCH] Update support script for powerline --- rc.d/zz-powerline | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rc.d/zz-powerline b/rc.d/zz-powerline index 3471fea..b9c6e55 100644 --- a/rc.d/zz-powerline +++ b/rc.d/zz-powerline @@ -1,9 +1,14 @@ #!/bin/bash # Powerline -if [ -f /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh ] +SCRIPT=/usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh +if [ -f $SCRIPT ] then - #urxvt_set_font "Terminus for Powerline-12" - urxvt_set_font "DejaVu Sans Mono for Powerline-10" - source /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh + if [ -n "$SSH_CONNECTION" ] + then + #urxvt_set_font "Terminus for Powerline-12" + export URXVT_FONT_NAME="DejaVu Sans Mono" + urxvt_set_font "DejaVu Sans Mono for Powerline-10" + source $SCRIPT + fi fi