Added a possibility to display the remote branch and the number of commits you are ahead or behind.

The theme "strug" demonstrates this new funtionality. There are some new variables:

ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED : allows you to switch between the current and the new display option.
ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX : prefix for the remote status information
ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX : suffix for the remote status information
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE_COLOR : color for displaying the ahead information (currently only used for the detailed mode)
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE_COLOR : color for displaying the behind information (currently only used for the detailed mode)
This commit is contained in:
leif.hanack 2012-12-31 01:15:11 +01:00
commit 8919463329
3 changed files with 42 additions and 5 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.idea
idea
locals.zsh
log/.zsh_history
projects.zsh