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"