|
@ -85,12 +85,12 @@ __prompt_command() { |
|
|
PS1+=" ${R}[${Mag}${branch}${R}|" |
|
|
PS1+=" ${R}[${Mag}${branch}${R}|" |
|
|
|
|
|
|
|
|
local dirty=$(git status -s | wc -l) |
|
|
local dirty=$(git status -s | wc -l) |
|
|
if [ $dirty > 0 ]; then |
|
|
|
|
|
|
|
|
if [[ $dirty -ne 0 ]]; then |
|
|
PS1+="${Mag}…$dirty" |
|
|
PS1+="${Mag}…$dirty" |
|
|
else |
|
|
else |
|
|
local ahead=$(git rev-list --branches --not --remotes) |
|
|
local ahead=$(git rev-list --branches --not --remotes) |
|
|
echo $ahead |
|
|
echo $ahead |
|
|
if [ $ahead > 0 ]; then |
|
|
|
|
|
|
|
|
if [[ $ahead -ne 0 ]]; then |
|
|
PS1+="${Blu}↑${ahead}" |
|
|
PS1+="${Blu}↑${ahead}" |
|
|
else |
|
|
else |
|
|
PS1+="${Gre}✔" |
|
|
PS1+="${Gre}✔" |
|
|