From ec83b07dd008bde7d6112d13065cd8903186ec11 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 31 May 2023 16:39:04 +0100 Subject: [PATCH] updated prompt.sh --- .bash.d/prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash.d/prompt.sh b/.bash.d/prompt.sh index 65fadf6e..1a0806cd 100644 --- a/.bash.d/prompt.sh +++ b/.bash.d/prompt.sh @@ -53,7 +53,7 @@ fi # shellcheck disable=SC2154 # export PS1+="\[$PS1_COLOUR\]\t \[$bldblu\]\w \[$PS1_COLOUR\]> \[$txtrst\]" # shellcheck disable=SC1117 -export PS1+="\[$PS1_COLOUR\]\t \[$PS1_USER_COLOUR\]\u\[$txtwht\]@\[$bldgrn\]\h:\[$bldpur\]\$(git branch 2>/dev/null | awk '/^\\*/{print \$2\" \"}')\[$bldblu\]\w \[$PS1_COLOUR\]> \[$txtrst\]" +export PS1+="\[$PS1_COLOUR\]\t \[$PS1_USER_COLOUR\]\u\[$txtwht\]@\[$bldgrn\]\h:\[$bldpur\]\$(git branch 2>/dev/null | grep '^*' | sed 's/^*//') \[$bldblu\]\w \[$PS1_COLOUR\]> \[$txtrst\]" #if type kube_ps1 &>/dev/null; then # PS1='$(kube_ps1)'" $PS1"