summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-26 11:50:04 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-26 11:50:04 +0200
commit49d47cc43c6b89e359b0b5ac495795379cedea1a (patch)
treeba32f29f46ddf82b55a949b393fd382c06d7b5d8 /bin/extra
parent913b7eea8e19ce93fde2862717dee0fd89b75522 (diff)
changed remote parsing
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 c8a36bc..36027ad 100755
--- a/bin/extra/supd
+++ b/bin/extra/supd
@@ -30,7 +30,7 @@ do
# Show remote state
printf ' %s %s\n' "$(git status --short 2> /dev/null |
awk 'NR==1 {print $1}')" "$(git branch -v 2>/dev/null |
- grep '^\*' | cut -f2 -d'[' | cut -f1 -d' ' |
- sed 's/ahead/↑/;s/behind/↓/;s/\*//')"
+ awk -F '[][]' '/^\*/ {print $2}')" |
+ sed 's/ahead/↑ /;s/behind/↓ /;s/[^↓↑]*/ /g'
)
done