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