Skip to content

Commit

Permalink
environment: only enable bracketed paste on non-dumb terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Sep 28, 2018
1 parent e9387a1 commit 6c46804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/environment/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# paste had a regression. Additionally, 5.2 added bracketed-paste-url-magic
# which is generally better than url-quote-magic so we load that when possible.
autoload -Uz is-at-least
if [[ ${ZSH_VERSION} != 5.1.1 ]]; then
if [[ ${ZSH_VERSION} != 5.1.1 && ${TERM} != "dumb" ]]; then
if is-at-least 5.2; then
autoload -Uz bracketed-paste-url-magic
zle -N bracketed-paste bracketed-paste-url-magic
Expand Down

0 comments on commit 6c46804

Please sign in to comment.