mirror of
https://github.com/gryf/vmstrap.git
synced 2026-10-09 07:22:30 +02:00
Get rid of fallback fonts and check with Xdefaults.
This commit is contained in:
1 parent
49bb2a7fc3
commit
4de7bcf1f7
1 file changed
-13
@@ -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
|
|
||||||
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=""
|
GIT_PICT=""
|
||||||
HG_PICT=""
|
HG_PICT=""
|
||||||
PY_PICT=""
|
PY_PICT=""
|
||||||
JS_PICT=""
|
JS_PICT=""
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Detect whether the current directory is a git repository.
|
# Detect whether the current directory is a git repository.
|
||||||
|
|||||||
Reference in new issue
Block a user