So currently I have this as my ZSH_THEME_GIT_PROMPT
stuff:
ZSH_THEME_GIT_PROMPT_PREFIX="[ "
ZSH_THEME_GIT_PROMPT_SUFFIX=" ] "
ZSH_THEME_GIT_PROMPT_DIRTY=" ✘"
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
ZSH_THEME_GIT_PROMPT_ADDED="✚"
ZSH_THEME_GIT_PROMPT_MODIFIED="★"
ZSH_THEME_GIT_PROMPT_DELETED="✖"
ZSH_THEME_GIT_PROMPT_RENAMED="➜"
My problem is that the ZSH_THEME_GIT_PROMPT_DIRTY
and ZSH_THEME_GIT_PROMPT_CLEAN
always add a trailing white space.
Meaning that from the above if I have a clean git project, it looks like this: [ master ✔ ]
And if I have a dirty git project, it looks like this: [ master ✘ ★ ]
As you can see, the clean version has 2 spaces after because I add a space on the SUFFIX for when it is dirty, so I was wondering if there was a way to remove the automatically added space on the CLEAN/DIRTY git prompts so I can alleviate this problem.