dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Git don't throw up when not on some branch

Open spruce opened this issue 6 years ago β€’ 0 comments

Hi, thanks for the best dotfiles yet πŸ‘ . Now to my "problem". Currently when being in a detached HEAD state the prompt throws up and always shows a warning that

fatal: ref HEAD is not a symbolic ref

and shows an incomplete prompt e.g.:

πŸ”Œ  ⚑️in .dotfiles/ on

This PR fixes that and displays:

πŸ”Œ  ⚑️  in .dotfiles/ on detached HEAD

Maybe the message could be tweak a little (maybe show commit sha) but is in my opinion way better than throwing an error.

spruce avatar Jul 31 '18 21:07 spruce