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