summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index ea696e76..9be59a1f 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -87,17 +87,23 @@ forward-argument () {
   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]}