Mercurial Prompt Support #901

Closed
wants to merge 2 commits into
from

3 participants

@mathew-hall

Adds new library to provide similar functions to existing git library. Works in the same way, provides hg_prompt_info and hg_prompt_status that do the same thing as their git counterparts.

Usage:

Set appropriate ZSH_THEME_HG_PROMPT_* variables and use hg_prompt_status in a theme. Ugly looking example provided in lib/mjh.theme.zsh just uses the existing git ones.

Mathew Hall added some commits Feb 1, 2012
Mathew Hall Added support for Mercurial repositories. Works in the same way as GI…
…T; themes need to use functions defined in lib/hg.zsh.

Currently uses git theme variables ($ZSH_THEME_GIT_PROMPT_*). Remove assignments at the top of hg.zsh and define them in themes to change.
25ff16e
Mathew Hall Cleaned lib/hg.zsh of references to git.
Theme now sets necessary vars for hg info on prompts.
3e4f6d1
@sorin-ionescu

@sjl wrote a Mercurial plugin, hg-prompt, that greatly simplifies the inserting of Mercurial repository information in prompts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment