Git status on bash prompt in technicolor
bash-git-prompt: Informative git prompt for bash and fish
https://github.com/magicmonty/bash-git-prompt
Project's complete git status (branch name, difference with remote branch, number of files staged, changed, untracked, etc...) displayed on your command prompt.
My shell right now:
Available symbols:
- Local Status Symbols
-
✔
: repository clean -
●n
: there aren
staged files -
✖n
: there aren
unmerged files -
✚n
: there aren
changed but unstaged files -
…n
: there aren
untracked files -
⚑n
: there aren
stash entries
-
- Branch Tracking Symbols
-
↑n
: ahead of remote byn
commits -
↓n
: behind remote byn
commits -
↓m↑n
: branches diverged, other bym
commits, yours byn
commits
-
Now that I know it, I would never come back to an "uninformative" prompt!
P.S.: If you're a zsh user, have a look at the original zsh version
Written by Lorenzo Novaro
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#