mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-19 20:38:07 +01:00
Get rid of fallback fonts and check with Xdefaults.
This commit is contained in:
21
.bash_prompt
21
.bash_prompt
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user