mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
use zsh vi-mode
This commit is contained in:
parent
c66ee17918
commit
814cc29496
3 changed files with 7 additions and 6 deletions
|
|
@ -15,6 +15,7 @@ zle -N edit-command-line
|
|||
|
||||
bindkey -v
|
||||
|
||||
|
||||
# allow v to edit the command line (standard behaviour)
|
||||
autoload -Uz edit-command-line
|
||||
bindkey -M vicmd 'v' edit-command-line
|
||||
|
|
@ -45,6 +46,6 @@ function vi_mode_prompt_info() {
|
|||
}
|
||||
|
||||
# define right prompt, if it wasn't defined by a theme
|
||||
if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
|
||||
RPS1='$(vi_mode_prompt_info)'
|
||||
fi
|
||||
#if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
|
||||
RPS1="$RPS1"'$(vi_mode_prompt_info)'"$RPROMPT"
|
||||
#fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue