From 87a6485177322043d592ff30374adf14c0efa341 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 19 Nov 2018 21:33:37 +0100 Subject: [PATCH] Improve colors for branch display in bash git prompt --- bashrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 6cc7b7d..cdb330a 100644 --- a/bashrc +++ b/bashrc @@ -55,9 +55,12 @@ git__prompt () { fi if [ $branch = 'master' ] then - echo -ne " \033[01;34m$branch" + echo -ne " $blue$branch" + elif [ ${branch:0:1} = '#' ] + then + echo -ne " $red$branch" else - echo -ne " \033[01;32m$branch" + echo -ne " $yellow$branch" fi if [ $modif = 0 ]