From 89df1a786109be84c7e9aae29081a0fdd50f8c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 25 Feb 2016 13:10:20 +0100 Subject: [PATCH] Fix PROMPT modification example The robbyrussell theme changed, so we must change the example. See https://github.com/robbyrussell/oh-my-zsh/pull/4619#commitcomment-16324023 --- plugins/mercurial/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mercurial/README.md b/plugins/mercurial/README.md index f42212d68..c26444e98 100644 --- a/plugins/mercurial/README.md +++ b/plugins/mercurial/README.md @@ -1,4 +1,5 @@ # Mercurial plugin + ### Usage Update .zshrc: @@ -11,7 +12,7 @@ Update .zshrc: The `robbyrussell` theme is used by default, so you need to modify `$PROMPT` var by adding `$(hg_prompt_info)` after `$(git_prompt_info)`, so it looks like this: ```zsh - PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)$(hg_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' + PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)$(hg_prompt_info)' ``` 3. Initialize additional vars used in plugin. So in short put next in **.zshrc**: