diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-10-05 11:00:20 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-10-05 11:00:20 +0200 |
| commit | dc2b69508c58085ece7be617ae05ebaab5b7ecb2 (patch) | |
| tree | d3026e16d34a028668630c74ab25f12295092513 /.bash-powerline.sh | |
| parent | ea39a38f64f0f2f752e1776038abb15332d98df1 (diff) | |
bash-powerline: space
Diffstat (limited to '.bash-powerline.sh')
| -rw-r--r-- | .bash-powerline.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh index dffbf41..047631c 100644 --- a/.bash-powerline.sh +++ b/.bash-powerline.sh @@ -58,8 +58,8 @@ __powerline() { # scan first two lines of output from `git status` while IFS= read -r line; do if [[ $line =~ ^## ]]; then # header line - [[ $line =~ ahead\ ([0-9]+) ]] && marks+=" $SYMBOL_GIT_PUSH${BASH_REMATCH[1]}" - [[ $line =~ behind\ ([0-9]+) ]] && marks+=" $SYMBOL_GIT_PULL${BASH_REMATCH[1]}" + [[ $line =~ ahead\ ([0-9]+) ]] && marks+="$SYMBOL_GIT_PUSH${BASH_REMATCH[1]}" + [[ $line =~ behind\ ([0-9]+) ]] && marks+="$SYMBOL_GIT_PULL${BASH_REMATCH[1]}" else # branch is modified if output contains more lines after the header line marks="$SYMBOL_GIT_MODIFIED$marks" break |
