From 4de7bcf1f7c23a042d0182a4e45dfae8a643bb61 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 21 Jan 2021 09:12:49 +0100 Subject: [PATCH] Get rid of fallback fonts and check with Xdefaults. --- .bash_prompt | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.bash_prompt b/.bash_prompt index e007e0c..84bc2e3 100644 --- a/.bash_prompt +++ b/.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.