Open hkdobrev opened 11 years ago
Instead of the current git functions in .bash_prompt it would be better to use the recommended git way of customizing your PS1.
.bash_prompt
Checkout source and docs here: https://github.com/git/git/blob/v1.8.4/contrib/completion/git-prompt.sh
It gives you a single function __git_ps1 to use in your prompt and you can customize it with few environment variables.
It has features like:
$
>
<
=
+
%
All of these are optional and could be set via some global constants so it is more customizable.
This should clouse #137 and #155 .
Instead of the current git functions in
.bash_prompt
it would be better to use the recommended git way of customizing your PS1.Checkout source and docs here: https://github.com/git/git/blob/v1.8.4/contrib/completion/git-prompt.sh
It gives you a single function __git_ps1 to use in your prompt and you can customize it with few environment variables.
It has features like:
$
for available stash.>
,<
or=
for comparison between a local and a remote branch+
for staged changes.%
for untracked files.All of these are optional and could be set via some global constants so it is more customizable.