about summary refs log tree commit diff
path: root/Functions/Zle/bash-backward-word
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-07-06 17:25:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-07-06 17:25:53 +0000
commitfe06b7a73db3af0a4ba6988c5c467a90d36a2a76 (patch)
treea16639e189c22b372c7f5741e22273a2b310acfe /Functions/Zle/bash-backward-word
parent13484584472e82505c9decd686bb67771af508c9 (diff)
downloadzsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.tar.gz
zsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.tar.xz
zsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.zip
15279: ${(S)...%%...} etc. doc; 15288: bash word functions + doc
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