diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:18:14 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:18:14 +0800 |
commit | dd7f2004af233b70c3362ba6f7fd740c6c303cd3 (patch) | |
tree | 65f461c1e3d79dd0fe7ce6540acd4e185638825e /_zsh/60-zle.zsh | |
parent | 02e4ae3bb992ca80f28bb790353856d2f669d4ec (diff) | |
download | dotfiles-dd7f2004af233b70c3362ba6f7fd740c6c303cd3.tar.bz2 |
zsh: Add 60-zle.zsh and deal with bracketed paste
Diffstat (limited to '_zsh/60-zle.zsh')
-rw-r--r-- | _zsh/60-zle.zsh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/_zsh/60-zle.zsh b/_zsh/60-zle.zsh new file mode 100644 index 0000000..f76f748 --- /dev/null +++ b/_zsh/60-zle.zsh @@ -0,0 +1,20 @@ +# +# zsh/zle.zsh +# some generic ZLE settings +# see zshzle(1) +# +# 2016-05-29 +# + +# Turn off ZLE bracketed paste in dumb term, +# otherwise turn on ZLE bracketed-paste-magic +# Credit: http://zmwangx.github.io/blog/2015-09-21-zsh-51-and-bracketed-paste.html +# See also zshparam(1) +if [[ ${TERM} == dumb ]]; then + unset zle_bracketed_paste +else + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic +fi + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |