a3c2a2f6e8
This patch makes git_prompt_status support three new status variables: - ZSH_THEME_GIT_PROMPT_AHEAD - ZSH_THEME_GIT_PROMPT_BEHIND - ZSH_THEME_GIT_PROMPT_DIVERGED With these extra variables it's easy to see (1) if you have commits in your local branch that weren't pushed to the remote (AHEAD), (2) if there are commits in the remote that you haven't merged/rebased yet (BEHIND) or (3) if you have local unpushed commits AND the remote has some commits you haven't merged yet (DIVERGED). Refer to the first line displayed on `git status -b --porcelain`. An example setup in a .zsh-theme file would be: ZSH_THEME_GIT_PROMPT_AHEAD="↑" ZSH_THEME_GIT_PROMPT_BEHIND="↓" ZSH_THEME_GIT_PROMPT_DIVERGED="↕" |
||
---|---|---|
.. | ||
aliases.zsh | ||
completion.zsh | ||
correction.zsh | ||
directories.zsh | ||
edit-command-line.zsh | ||
functions.zsh | ||
git.zsh | ||
grep.zsh | ||
history.zsh | ||
key-bindings.zsh | ||
misc.zsh | ||
rvm.zsh | ||
spectrum.zsh | ||
termsupport.zsh | ||
theme-and-appearance.zsh |