summaryrefslogtreecommitdiff
path: root/bin/extra/supd
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-26 15:42:38 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-26 15:42:38 +0200
commit973e22d8f65f952188272b76167beca816501064 (patch)
tree960b39f87b32ff8e1ccece9be7004a9cb344782d /bin/extra/supd
parentae62e5225d9f323fc1a4c688e809fc940ac5576f (diff)
parent18b10ff5433f13692f720e6aa505f83717f91fc9 (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/supd')
-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