From 0b29b5ad366d76dd2841aa1fb774dcca16cb24fe Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 31 May 2024 21:35:08 +0300 Subject: [PATCH] change zsh mapping for insert sudo --- home/user/.config/zsh/options | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/user/.config/zsh/options b/home/user/.config/zsh/options index ca0fd72..6f59b46 100644 --- a/home/user/.config/zsh/options +++ b/home/user/.config/zsh/options @@ -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 \ No newline at end of file +bindkey -M vicmd '^S' insert-sudo +bindkey -M viins '^S' insert-sudo \ No newline at end of file