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)\]'