1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-19 04:20:26 +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 THRESHOLD=3
# various symbols, depending on used font in urxvt # various symbols, depending on used font in urxvt
echo $TERM | grep -qi rxvt GIT_PICT=""
if [[ $? == 0 ]]; then HG_PICT=""
grep -i 'urxvt.font:' ~/.Xdefaults | grep -qi misc-fixed PY_PICT=""
if [[ $? == 0 ]]; then JS_PICT=""
GIT_PICT="◆"
HG_PICT="☿"
PY_PICT="℗"
JS_PICT="ⓙ"
fi
fi
if [[ -z $GIT_PICT ]]; then
GIT_PICT=""
HG_PICT=""
PY_PICT=""
JS_PICT=""
fi
# Detect whether the current directory is a git repository. # Detect whether the current directory is a git repository.