I recently started to use Zsh as my default shell. One thing that I like in git is the colors, for example, the git status
and git diff
used to have colors (additions in green, and deletions in red).
Now with Zsh it is all white (the default color). How can I put colors on git outputs in Zsh? Thanks.
git-prompt.sh is compatible with both Bash and Zsh. Zsh is powerful enough that there are entire frameworks dedicated to making it better.
Add zsh packageExtract the content to your git bash installation dir: Usually C:\Program Files\Git using PeaZip. Now open git bash and type zsh, if it starts zsh then you are good to go.
git config --global color.diff auto
git config --global color.status auto
Migore,
My .gitconfig
is set up like this:
[color]
diff = auto
status = auto
branch = auto
[color "status"]
changed = yellow
added = green
untracked = red
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With