Fix rc.d/zz-powerline
This commit is contained in:
parent
fdf83c632e
commit
66f7b0957a
@ -3,13 +3,13 @@
|
|||||||
# Powerline
|
# Powerline
|
||||||
POWERLINE_FILE=/usr/share/powerline/bash/powerline.sh
|
POWERLINE_FILE=/usr/share/powerline/bash/powerline.sh
|
||||||
|
|
||||||
#export URXVT_FONT_NAME="Terminus for Powerline"
|
|
||||||
export URXVT_FONT_NAME="DejaVu Sans Mono for Powerline"
|
|
||||||
export URXVT_FONT_SIZE="8"
|
|
||||||
|
|
||||||
if [ -f "${POWERLINE_FILE}" -a -z "$SSH_CONNECTION" ]
|
if [ -f "${POWERLINE_FILE}" -a -z "$SSH_CONNECTION" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
#export URXVT_FONT_NAME="Terminus for Powerline"
|
||||||
|
export URXVT_FONT_NAME="DejaVu Sans Mono for Powerline"
|
||||||
|
export URXVT_FONT_SIZE="8"
|
||||||
|
|
||||||
xrdb -merge <<"EOF"
|
xrdb -merge <<"EOF"
|
||||||
XTerm*utf8: 1
|
XTerm*utf8: 1
|
||||||
XTerm*faceName: ${URXVT_FONT_NAME}
|
XTerm*faceName: ${URXVT_FONT_NAME}
|
||||||
@ -20,6 +20,7 @@ UXTerm*faceSize: ${URXVT_FONT_SIZE}
|
|||||||
URxvt*font: xft:${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}
|
URxvt*font: xft:${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}
|
||||||
EOF
|
EOF
|
||||||
xrdb -merge ~/.Xresources.powerline
|
xrdb -merge ~/.Xresources.powerline
|
||||||
|
|
||||||
urxvt_set_font "${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}"
|
urxvt_set_font "${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}"
|
||||||
source ${POWERLINE_FILE}
|
source ${POWERLINE_FILE}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user