about summary refs log tree commit diff
path: root/Functions/Zle/bash-kill-word
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/bash-kill-word')
-rw-r--r--Functions/Zle/bash-kill-word9
1 files changed, 9 insertions, 0 deletions
diff --git a/Functions/Zle/bash-kill-word b/Functions/Zle/bash-kill-word
new file mode 100644
index 000000000..ba638a3c7
--- /dev/null
+++ b/Functions/Zle/bash-kill-word
@@ -0,0 +1,9 @@
+# This implements a bash-style kill-word.
+# To use,
+#   zle -N bash-kill-word
+#   bindkey '...' bash-kill-word
+# or if you wish to replace existing kill-word bindings,
+#   zle -N kill-word bash-kill-word
+
+local WORDCHARS=''
+zle .kill-word