dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

.bash_prompt: better git functions #2

Open eins78 opened this issue 11 years ago • 1 comments

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.

eins78 avatar Nov 24 '12 01:11 eins78

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)

eins78 avatar Nov 24 '12 20:11 eins78