Browse Source

colors

master
pvincent 4 years ago
parent
commit
8b290f9f91
  1. 6
      bash.bashrc

6
bash.bashrc

@ -111,14 +111,14 @@ __prompt_command() {
local tag_release=$(git describe --tags | cut -d'-' -f1)
local dirty=$(git status -s | wc -l)
if [[ $dirty -ne 0 ]]; then
PS1+="⚡|${tag_release}${Mag}…$dirty"
PS1+="⚡|${tag_release}${Red}…$dirty"
else
local ahead=$(git rev-list --branches --not --remotes |wc -l)
if [[ $ahead -ne 0 ]]; then
PS1+="⚡|${Blu}${tag_release}${Yel}↑${ahead}"
PS1+="⚡|${tag_release}${Yel}↑${ahead}"
else
if [[ -z $tag_release ]];then
PS1+="${Red}✔"
PS1+="${Blu}✔"
else
PS1+="${Gre}✔${R}|${Blu}${tag_release}"
fi

Loading…
Cancel
Save