mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
fixed bug when using auto-completion
This commit is contained in:
parent
e6f7f8ead1
commit
5acee7be7a
1 changed files with 2 additions and 2 deletions
|
|
@ -47,12 +47,12 @@ INSERT_MODE="-- INSERT --"
|
||||||
NORMAL_MODE="-- NORMAL --"
|
NORMAL_MODE="-- NORMAL --"
|
||||||
VI_PROMPT=%{$GREEN%}"${INSERT_MODE}"
|
VI_PROMPT=%{$GREEN%}"${INSERT_MODE}"
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
VI_PROMPT="${${KEYMAP/vicmd/${RED}"${NORMAL_MODE}"}/(main|viins)/${GREEN}"${INSERT_MODE}"}"
|
VI_PROMPT="${${KEYMAP/vicmd/${RED}${NORMAL_MODE}}/(main|viins)/${GREEN}${INSERT_MODE}}"
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prompt format
|
# Prompt format
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{$BLUE_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
|
%{$BLUE_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
|
||||||
${VI_PROMPT} ➤ %{$RESET_COLOR%}'
|
${VI_PROMPT} ➤%{$RESET_COLOR%} '
|
||||||
RPROMPT='%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)$(git_prompt_status)%{$RESET_COLOR%}'
|
RPROMPT='%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)$(git_prompt_status)%{$RESET_COLOR%}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue