change zsh mapping for insert sudo
This commit is contained in:
parent
09bf90070a
commit
0b29b5ad36
@ -6,6 +6,7 @@ setopt nonomatch # hide error message if there is no match for the pat
|
||||
setopt notify # report the status of background jobs immediately
|
||||
setopt numericglobsort # sort filenames numerically when it makes sense
|
||||
setopt promptsubst # enable command substitution in prompt
|
||||
setopt noflowcontrol
|
||||
|
||||
WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
|
||||
|
||||
@ -91,5 +92,5 @@ insert-sudo() {
|
||||
|
||||
zle -N insert-sudo
|
||||
|
||||
bindkey -M vicmd '^[s' insert-sudo
|
||||
bindkey -M viins '^[s' insert-sudo
|
||||
bindkey -M vicmd '^S' insert-sudo
|
||||
bindkey -M viins '^S' insert-sudo
|
||||
Loading…
x
Reference in New Issue
Block a user