3 This plugin displays the current Git or Mercurial branch, fast. If in a Mercurial repository,
4 also display the current bookmark, if present.
6 To use it, add `branch` to the plugins array in your zshrc file:
18 0.11s user 0.14s system 70% cpu 0.355 total
24 $ time zsh /tmp/branch_prompt_info_test.zsh
25 0.00s user 0.01s system 78% cpu 0.014 total
30 Copy your theme to `$ZSH_CUSTOM/themes/` and modify it to add `$(branch_prompt_info)` in your prompt.
31 This example is for the `robbyrussell` theme:
34 diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme
35 index 2fd5f2cd..9d89a464 100644
36 --- a/themes/robbyrussell.zsh-theme
37 +++ b/themes/robbyrussell.zsh-theme
39 PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
40 -PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
41 +PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(branch_prompt_info)'
43 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
44 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
49 Victor Torres (<vpaivatorres@gmail.com>)