commit 5086684e31ff9748edde94127bd6e224089362c1
parent 83b0fbae5a27658f5b3018c4cdd581cafa7af197
Author: Byron Torres <b@torresjrjr.com>
Date: Thu, 26 May 2022 21:33:19 +0100
info(): show git remotes
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sh/.init.sh b/sh/.init.sh
@@ -45,6 +45,8 @@ info() {
$FETCH
[ "$COLUMNS" -lt 80 ] && l || la ; echo
git log -0 2>&- && { # if git repo
+ git remote -v | awk '{print "\x1b[1;31m" $1 "\x1b[m\t" $2}' | uniq
+ echo
git log -1 --abbrev-commit --format=short --color --decorate \
| sed -n '1p; /^ /p'
git status -s