zsh: improve argument-killing widgets
Alan Pearce alan@alanpearce.eu
Fri, 30 Aug 2019 16:50:03 +0200
1 files changed, 7 insertions(+), 1 deletions(-)
jump to
M zsh/.config/zsh/.zshrc → zsh/.config/zsh/.zshrc
@@ -87,17 +87,23 @@ local WORDCHARS="\!\`~#@$%^&*()-_=+[{]}\|;:,<.>/?\'\"" zle forward-word } +backward-kill-argument () { + local WORDCHARS="\!\`~#@$%^&*()-_=+[{]}\|;:,<.>/?\'\"" + zle backward-kill-word +} + kill-argument () { local WORDCHARS="\!\`~#@$%^&*()-_=+[{]}\|;:,<.>/?\'\"" - zle backward-argument zle kill-word } zle -N backward-argument zle -N forward-argument zle -N kill-argument +zle -N backward-kill-argument bindkey '\e^b' backward-argument bindkey '\e^f' forward-argument +bindkey '\e^d' backward-kill-argument bindkey '\e^k' kill-argument sort=${commands[gsort]:-$commands[sort]}