[Fix #127] Indicate overwrite mode in sorin theme
This commit is contained in:
parent
4bab24c0e6
commit
f48a60f40e
@ -26,7 +26,7 @@ function prompt_sorin_setup {
|
|||||||
add-zsh-hook precmd prompt_sorin_precmd
|
add-zsh-hook precmd prompt_sorin_precmd
|
||||||
|
|
||||||
zstyle ':omz:module:editor' completing '%B%F{red}...%f%b'
|
zstyle ':omz:module:editor' completing '%B%F{red}...%f%b'
|
||||||
zstyle ':omz:module:editor:keymap' primary ''
|
zstyle ':omz:module:editor:keymap:primary' overwrite ' %F{red}♺%f'
|
||||||
zstyle ':omz:module:editor:keymap' alternate ' %F{yellow}❮%f%B%F{red}❮%f%b%F{red}❮%f'
|
zstyle ':omz:module:editor:keymap' alternate ' %F{yellow}❮%f%B%F{red}❮%f%b%F{red}❮%f'
|
||||||
zstyle ':omz:module:git' action ':%%B%F{yellow}%s%f%%b'
|
zstyle ':omz:module:git' action ':%%B%F{yellow}%s%f%%b'
|
||||||
zstyle ':omz:module:git' added ' %%B%F{green}✚%f%%b'
|
zstyle ':omz:module:git' added ' %%B%F{green}✚%f%%b'
|
||||||
@ -46,7 +46,7 @@ function prompt_sorin_setup {
|
|||||||
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
||||||
|
|
||||||
PROMPT='%F{cyan}%1~%f${git_info:+${(e)git_info[prompt]}} %(!.%B%F{red}#%f%b.%B%F{green}❯%f%b) '
|
PROMPT='%F{cyan}%1~%f${git_info:+${(e)git_info[prompt]}} %(!.%B%F{red}#%f%b.%B%F{green}❯%f%b) '
|
||||||
RPROMPT='${editor_info[keymap]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
RPROMPT='${editor_info[keymap]}${editor_info[overwrite]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
||||||
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user