-
Notifications
You must be signed in to change notification settings - Fork 5
Prompt
Felipe Contreras edited this page Nov 6, 2020
·
1 revision
Set any of the following to a non-empty value if you want to enable them.
GIT_PS1_SHOWCOLORHINTS=1 GIT_PS1_SHOWDIRTYSTATE=1
- GIT_PS1_SHOWDIRTYSTATE
-
Unstaged (*) and staged (+) changes will be shown next to the branch name.
- GIT_PS1_SHOWSTASHSTATE
-
If something is stashed, then a '$' will be shown next to the branch name.
- GIT_PS1_SHOWUNTRACKEDFILES
-
If there’re untracked files, then a '%' will be shown next to the branch name.
- GIT_PS1_SHOWCOLORHINTS
-
If you would like a colored hint about the current dirty state.
- GIT_PS1_SHOWUPSTREAM
-
If you would like to see the difference between
@
and its upstream, set this "auto". For more values see here. - GIT_PS1_STATESEPARATOR
-
The separator between the branch name and the above state symbols by setting (default:
space
). - GIT_PS1_DESCRIBE_STYLE
-
If you would like to see more information about the identity of commits checked out as a detached HEAD. See more here.