dotfiles
dotfiles copied to clipboard
.bash_prompt: better git functions #2
Duplicate, original closed itself: :worried: PR https://github.com/mathiasbynens/dotfiles/pull/143
BTW: if you want to use git outside of your prompt, you can just source the functions provided by git itself Here the relevant functions are extracted because it would be overkill to source it all.
I added a comment to clarify how to use the different checks with symbols. If you fill out all the symbols like @necolas did, your branch could look like:
master+*?$
(if your branch has staged, changed but unstaged, untracked and stashed files)