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:
21
.bash_prompt
21
.bash_prompt
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user