Update support script for powerline

This commit is contained in:
Xavier Logerais 2014-03-30 21:35:33 +02:00
parent e003bd0c83
commit 79febcd0b3

View File

@ -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