mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge f5b734105b into 291e96dcd0
This commit is contained in:
commit
da86dd891c
1 changed files with 14 additions and 0 deletions
|
|
@ -48,3 +48,17 @@ function vi_mode_prompt_info() {
|
|||
if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
|
||||
RPS1='$(vi_mode_prompt_info)'
|
||||
fi
|
||||
|
||||
# vi-mode cursor indicator
|
||||
echo -ne "\e[6 q" # vertical bar
|
||||
zle-keymap-select () {
|
||||
if [ "$TERM" = "rxvt-unicode-256color" ]; then
|
||||
if [ $KEYMAP = vicmd ]; then
|
||||
# the command mode for vi
|
||||
echo -ne "\e[2 q" # block
|
||||
else
|
||||
# the insert mode for vi
|
||||
echo -ne "\e[6 q" # bar
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue