summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-01 22:47:04 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-01 22:47:04 +0100
commit5265e4a51c9b76537f6c7766e5edbb1f20e56da4 (patch)
tree0f19d06565e978d6833ef0e73b4df89f2dbc1b6b /bin/extra
parente00713823b3dbd52f7ea15b5d7f7371d78142e16 (diff)
put status in braces
Diffstat (limited to 'bin/extra')
-rwxr-xr-xbin/extra/supd4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/extra/supd b/bin/extra/supd
index dba4910..2e1f968 100755
--- a/bin/extra/supd
+++ b/bin/extra/supd
@@ -30,8 +30,8 @@ do
return
fi
# Show remote state
- printf '%s %s\n' "$(git status --short 2> /dev/null |
- awk 'NR==1 {print $1}')" "$(git branch -v 2>/dev/null |
+ printf ' %s %s\n' "$(git status --short 2> /dev/null |
+ awk 'NR==1 {print "(" $1 ")"}')" "$(git branch -v 2>/dev/null |
awk -F '[][]' '/^\*/ {print $2}' |
sed 's/ahead/↑ /;s/behind/↓ /;s/[^↓↑]*/ /g')"
)