1
0
Fork 0
mirror of synced 2024-11-23 07:45:34 -05:00

[environment] better bracketed paste zsh >=5.2

This commit is contained in:
Matt Hamilton 2016-06-15 18:46:54 -07:00
parent 609d94e949
commit 345233741e

View file

@ -5,6 +5,10 @@
# use smart URL pasting and escaping # use smart URL pasting and escaping
autoload -Uz is-at-least autoload -Uz is-at-least
if [[ ${ZSH_VERSION} != 5.1.1 ]]; then if [[ ${ZSH_VERSION} != 5.1.1 ]]; then
if is-at-least 5.2; then
autoload -Uz bracketed-paste-url-magic
zle -N bracketed-paste-url-magic
else
if is-at-least 5.1; then if is-at-least 5.1; then
autoload -Uz bracketed-paste-magic autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic
@ -12,6 +16,7 @@ if [[ ${ZSH_VERSION} != 5.1.1 ]]; then
autoload -Uz url-quote-magic autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic zle -N self-insert url-quote-magic
fi fi
fi
# Treat single word simple commands without redirection as candidates for resumption of an existing job. # Treat single word simple commands without redirection as candidates for resumption of an existing job.
setopt AUTO_RESUME setopt AUTO_RESUME