summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-05 16:23:54 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-05 16:23:54 +0200
commitd9b55a1b4ce254afce95ec836d819d19da5b0d6e (patch)
tree596266e5e25e57ca1e7391786bb81a68e23f39e3 /bin
parent344892a740937cea65521d986a474531a00dc1de (diff)
changed parse_branch and added it to supd
Diffstat (limited to 'bin')
-rwxr-xr-xbin/extra/supd7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/extra/supd b/bin/extra/supd
index 83a606b..4975b94 100755
--- a/bin/extra/supd
+++ b/bin/extra/supd
@@ -19,8 +19,11 @@ check ()
printf 'Up to date.' ||
printf 'Couldn'\''t update.'
printf ' '
- printf '%s\n' "$(git status --short 2> /dev/null |
- awk 'NR==1 {print $1}')"
+ 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/\*//')"
+
done
}