+ Added vim edit mode info to zsh
This commit is contained in:
parent
d6b049972b
commit
769e108b47
1 changed files with 12 additions and 3 deletions
|
@ -23,10 +23,19 @@ zstyle ':vcs_info:*' enable git
|
|||
fi
|
||||
}
|
||||
|
||||
function zle-line-init zle-keymap-select {
|
||||
PS1="
|
||||
%B%F{blue}%~ \$vcs_info_msg_0_
|
||||
%F{green}${${KEYMAP/vicmd/N }/(main|viins)/}$>%f%b "
|
||||
PS2=$PS1
|
||||
# RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
|
||||
# RPS2=$RPS1
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N zle-line-init
|
||||
zle -N zle-keymap-select
|
||||
|
||||
precmd () { vcs_info }
|
||||
#RPROMPT=\$vcs_info_msg_0_
|
||||
PS1="
|
||||
%B%F{blue}%~ \$vcs_info_msg_0_
|
||||
%F{green}$>%f%b "
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#60C0FF,bold,underline"
|
||||
ZSH_AUTOSUGGEST_HISTORY_IGNORE="ls *,cd *"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue