summaryrefslogtreecommitdiff
path: root/themes/wezm.zsh-theme
diff options
context:
space:
mode:
authorAdam Lindberg <hello@alind.io>2014-04-16 10:34:45 +0200
committerncanceill <nicolas.canceill@ens-cachan.org>2015-06-10 14:36:55 +0200
commit2d40cc0bb315a92368e35c15c92f955bd901c7c3 (patch)
treed3223d0c72ce169d8a4b4dc96139439e83b627d4 /themes/wezm.zsh-theme
parentf21a672fed1e1455c8341c972f3ba5a408726053 (diff)
downloadzsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.tar.gz
zsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.tar.bz2
zsh-2d40cc0bb315a92368e35c15c92f955bd901c7c3.zip
Add git_prompt_behind and git_prompt_exists
This adds two new theme functions for git: * `git_prompt_behind` works in a identical fashion to `git_prompt_ahead` and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if the branch is behind. * `git_prompt_remote` will output one format variable if the branch exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`). The old `git_prompt_ahead` has been changed. Using git log is subject to formatting in .gitconfig, which can be overridden and will break this function. Relying on rev-list is much more stable.
Diffstat (limited to 'themes/wezm.zsh-theme')
0 files changed, 0 insertions, 0 deletions