summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-10-05 11:00:20 +0200
committerMarc Vertes <mvertes@free.fr>2020-10-05 11:00:20 +0200
commit311148a5987d6e7b1a5788db5991bb9e3bec56d3 (patch)
tree8cb498e7798eba58749f6210c52fd0acfb7da694 /.bash-powerline.sh
parenta8bece1856d920fd7398d33275e2db034cfb3868 (diff)
bash-powerline: space
Diffstat (limited to '.bash-powerline.sh')
-rw-r--r--.bash-powerline.sh4
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