I'm on a Mac, I've installed git via brew and sourced the git-completion.bash script file.
I've exported the GIT_PS1_SHOWDIRTYSTATE=1
variable to also show the status of the current branch.
Finally I've included the $(__git_ps1 '(%s)')
in my PS1 definition.
As I read around
# In addition, if you set GIT_PS1_SHOWDIRTYSTATE to a nonempty
# value, unstaged (*) and staged (+) changes will be shown next
# to the branch name. You can configure this per-repository
# with the bash.showDirtyState variable, which defaults to true
# once GIT_PS1_SHOWDIRTYSTATE is enabled.
But no matter what my prompt shows me (name_branch #)
. I've no idea what the # symbol is supposed to mean. Also I couldn't find the official repo or documentation for this file.
Any hint?
Thanks
EDIT: This is my PS1:
PS1="${Yellow}\$(__git_ps1 '(%s)')${Green}\u@${Green}\h${Color_Off}:${Blue}\w\$${Color_Off} "
Also I want to add that __git_ps1
is correctly activated only on git directories but it shows that # symbol anyway.