mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
Improved mercurial prompt
This commit is contained in:
parent
e9e8c6b54d
commit
c2ef915921
2 changed files with 71 additions and 43 deletions
|
|
@ -52,10 +52,18 @@ plugins=(... mercurial)
|
|||
You can also redefine additional vars used in the plugin (after Oh My Zsh is sourced):
|
||||
|
||||
```zsh
|
||||
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg_bold[magenta]%}hg:(%{$fg[red]%}"
|
||||
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_HG_PROMPT_DIRTY="%{$fg[magenta]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||
ZSH_THEME_HG_PROMPT_CLEAN="%{$fg[magenta]%})"
|
||||
ZSH_THEME_HG_PROMPT_PREFIX="("
|
||||
ZSH_THEME_HG_PROMPT_SUFFIX=")"
|
||||
ZSH_THEME_HG_PROMPT_SEPARATOR="|"
|
||||
ZSH_THEME_HG_PROMPT_BRANCH="%{$fg_bold[magenta]%}"
|
||||
ZSH_THEME_HG_PROMPT_BEHIND="%{↓%G%}"
|
||||
ZSH_THEME_HG_PROMPT_AHEAD="%{↑%G%}"
|
||||
ZSH_THEME_HG_PROMPT_MODIFIED="%{$fg[red]%}%{●%G%}"
|
||||
ZSH_THEME_HG_PROMPT_ADDED="%{$fg[blue]%}%{✚%G%}"
|
||||
ZSH_THEME_HG_PROMPT_REMOVED="%{$fg[red]%}%{✖%G%}"
|
||||
ZSH_THEME_HG_PROMPT_DELETED="%{$fg[red]%}%{🗑️%G%}"
|
||||
ZSH_THEME_HG_PROMPT_UNKNOWN="%{$fg[cyan]%}%{…%G%}"
|
||||
ZSH_THEME_HG_PROMPT_CLEAN="%{$fg_bold[green]%}%{✔%G%}"
|
||||
```
|
||||
|
||||
### Display repo branch and directory status in prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue