From 632331d50158adbe9db7a7636253e5cc30e23b5d Mon Sep 17 00:00:00 2001
From: Michael Ochmann <michael.ochmann@propeller.de>
Date: Sun, 7 Nov 2021 00:18:55 +0100
Subject: [PATCH] added fancy git icon

---
 .bashrc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.bashrc b/.bashrc
index d791683..9ab612c 100644
--- a/.bashrc
+++ b/.bashrc
@@ -137,8 +137,12 @@ __prompt_command() {
 		fi
 	fi
 
-	local branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')
-	PS1+=" ${Cya}${branch}${RCol} > "
+	local branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
+	if [ "$branch" != "" ]
+		then
+		branch="${Whi}⎇${Cya} $branch"
+	fi
+	PS1+=" ${branch}${Yel} ❯ ${RCol}"
 }
 
 #PS1='[\u]@\H \w [\$?] \\$ \[$(tput sgr0)\]'