1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-18 12:00:31 +01:00

Get rid of fallback fonts and check with Xdefaults.

This commit is contained in:
2021-01-21 09:12:49 +01:00
parent 49bb2a7fc3
commit 4de7bcf1f7

View File

@@ -37,23 +37,10 @@ LIGHT_GREEN="\[\033[1;32m\]"
THRESHOLD=3
# various symbols, depending on used font in urxvt
echo $TERM | grep -qi rxvt
if [[ $? == 0 ]]; then
grep -i 'urxvt.font:' ~/.Xdefaults | grep -qi misc-fixed
if [[ $? == 0 ]]; then
GIT_PICT="◆"
HG_PICT="☿"
PY_PICT="℗"
JS_PICT="ⓙ"
fi
fi
if [[ -z $GIT_PICT ]]; then
GIT_PICT=""
HG_PICT=""
PY_PICT=""
JS_PICT=""
fi
GIT_PICT=""
HG_PICT=""
PY_PICT=""
JS_PICT=""
# Detect whether the current directory is a git repository.