add color to 'g status'

This commit is contained in:
William Hilton 2022-07-28 13:49:29 -04:00
parent cd6c36ea30
commit 1a64700368
No known key found for this signature in database
GPG key ID: 9609B8A5928BA6B9

2
bin/g
View file

@ -33,7 +33,7 @@ case "$1" in
'?' | status) '?' | status)
# TODO: Display help if not inside a repo # TODO: Display help if not inside a repo
# TODO: figure out how to git config --global color.status always automatically. # TODO: figure out how to git config --global color.status always automatically.
git status \ git -c color.status=always status \
| grep -v 'On branch' \ | grep -v 'On branch' \
| grep -v '(use "git push" to publish your local commits)' \ | grep -v '(use "git push" to publish your local commits)' \
| grep -v '(use "git reset HEAD <file>..." to unstage)' \ | grep -v '(use "git reset HEAD <file>..." to unstage)' \