diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-01 22:48:57 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-01 22:48:57 +0100 |
commit | ad249d1b2ac9acce54316d903248dd404f2f7a61 (patch) | |
tree | 50b061dc996655cb21fcfd962cb21fc0962a1f13 | |
parent | 5265e4a51c9b76537f6c7766e5edbb1f20e56da4 (diff) | |
parent | 7ff4c5b211129724c451831cefadd55cb55293dd (diff) |
Merge branch 'main' of db:dotfiles
-rwxr-xr-x | bin/extra/supd | 8 |
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')" |