From: Nicolas Boisselier Date: Sat, 3 Sep 2016 17:53:33 +0000 (+0100) Subject: test X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=07b2f6c9fb027fc98763d926388d0a6636ec6b5e;p=nb.git test --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index fe2f7125..49111824 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -6,7 +6,7 @@ nb_repos_commit_push() { cd "$i" || continue printf ">%s\n" "$i" - git commit -a -m "$*" && git push | sed 's/^/ /' + git commit --all --quiet --message "$*" && git push | sed 's/^/ /' done cd "$pwd" } @@ -18,7 +18,7 @@ nb_repos_status() { for i in $(nb-repo-dirs); do cd "$i" || continue - status=$(git status -s "$i"|sed 's/^/ /') + status=$(git status --short "$i"|sed 's/^/ /') [ -z "$status" ] || status=$'\n'"$status" printf ">%s%s\n" "$i" "$status"