mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
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
This commit is contained in:
parent
534bf2c608
commit
89df1a7861
1 changed files with 2 additions and 1 deletions
|
|
@ -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**:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue