Prompt turns green in CMD mode, instead
This commit is contained in:
parent
8dfbd2ad46
commit
bfc8fe696c
12
zsh/prompt
12
zsh/prompt
|
@ -29,8 +29,8 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}+%{$fg[white]%}"
|
||||||
##################
|
##################
|
||||||
|
|
||||||
prompt_vimode() {
|
prompt_vimode() {
|
||||||
MODE_INDICATOR="-- COMMAND -- "
|
MODE_INDICATOR=" %{$fg[green]%}\$ "
|
||||||
echo -n "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
|
echo -n "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/ \$ }"
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt() {
|
prompt() {
|
||||||
|
@ -47,14 +47,14 @@ prompt() {
|
||||||
# The prompt
|
# The prompt
|
||||||
echo -n "%{$fg[red]%}"
|
echo -n "%{$fg[red]%}"
|
||||||
echo -n "%{$FX[bold]%}"
|
echo -n "%{$FX[bold]%}"
|
||||||
echo -n ' $ '
|
|
||||||
echo -n "%{$reset_color%}"
|
|
||||||
|
|
||||||
|
echo -n '$(prompt_vimode)'
|
||||||
|
# echo -n ' $ '
|
||||||
|
|
||||||
|
echo -n "%{$reset_color%}"
|
||||||
}
|
}
|
||||||
|
|
||||||
rprompt() {
|
rprompt() {
|
||||||
echo -n '$(prompt_vimode)'
|
|
||||||
|
|
||||||
# Make the rprompt a bright grey to set it apart
|
# Make the rprompt a bright grey to set it apart
|
||||||
echo -n "%{$FG[245]%}"
|
echo -n "%{$FG[245]%}"
|
||||||
echo -n '$(prompt_pwd)'
|
echo -n '$(prompt_pwd)'
|
||||||
|
|
Loading…
Reference in a new issue