about summary refs log tree commit diff
path: root/Functions/Zle/bash-transpose-words
blob: eb96a1277eed7d053b813d1e25a42407bd293ab1 (plain) (blame)
1
2
3
4
5
6
7
8
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