aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/60-zle.zsh
blob: 92c339d73dc1342d6ee86f681dbcf818fed33c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# zsh/zle.zsh
# some generic ZLE settings
# see zshzle(1)
#
# 2016-05-29
#

# Turn off ZLE bracketed paste in dumb and cons25 (DFly default console) 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 ]] || [[ ${TERM} == cons25 ]]; 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: #