mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
use new sed line for behind numbers as well
This commit is contained in:
parent
fcb9a783ed
commit
0454137792
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ bureau_git_status() {
|
|||
num=$(echo "$_AHEAD_BEHIND" | command sed 's/.*ahead \([0-9]*\).*/\1/')
|
||||
_STATUS="$_STATUS%{$fg[$ZSH_THEME_GIT_PROMPT_AHEAD_COLOR]%}$ZSH_THEME_GIT_PROMPT_AHEAD$num%{$reset_color%}"
|
||||
fi
|
||||
if $(echo "$_INDEX" | command grep -q '^## .*behind [0-9]*'); then
|
||||
if $(echo "$_AHEAD_BEHIND" | command grep -q 'behind'); then
|
||||
num=$(echo "$_AHEAD_BEHIND" | command sed 's/.*behind \([0-9]*\).*/\1/')
|
||||
_STATUS="$_STATUS%{$fg[$ZSH_THEME_GIT_PROMPT_BEHIND_COLOR]%}$ZSH_THEME_GIT_PROMPT_BEHIND$num%{$reset_color%}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue