summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-01 22:48:08 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-01 22:48:08 +0100
commit7ff4c5b211129724c451831cefadd55cb55293dd (patch)
tree50b061dc996655cb21fcfd962cb21fc0962a1f13
parente8fe4ff2bf93e8df6fd811f304edd20ff26b5c33 (diff)
changed markup
-rwxr-xr-xbin/extra/supd8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/extra/supd b/bin/extra/supd
index 2e1f968..019dd51 100755
--- a/bin/extra/supd
+++ b/bin/extra/supd
@@ -21,16 +21,16 @@ do
cd "$dir" || return
# is git dir
git rev-parse > /dev/null 2>&1 || return
- printf '%s:' "$dir" | >&2 sed "s#$HOME#~#"
+ printf '%s: ' "$dir" | >&2 sed "s#$HOME#~#"
if git "${1:-fetch}" > /dev/null 2>&1
then
- printf ' o'
+ printf 'o'
else
- printf ' x'
+ printf 'x'
return
fi
# Show remote state
- printf ' %s %s\n' "$(git status --short 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')"