|
|
@ -111,11 +111,11 @@ __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}${Red}…$dirty" |
|
|
|
PS1+="⚡|${tag_release}${Yel}…$dirty" |
|
|
|
else |
|
|
|
local ahead=$(git rev-list --branches --not --remotes |wc -l) |
|
|
|
if [[ $ahead -ne 0 ]]; then |
|
|
|
PS1+="⚡|${tag_release}${Yel}↑${ahead}" |
|
|
|
PS1+="⚡|${tag_release}${Mag}↑${ahead}" |
|
|
|
else |
|
|
|
if [[ -z $tag_release ]];then |
|
|
|
PS1+="${Blu}✔" |
|
|
|