mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
fix url-quote-magic not working issue
Incompatibilites between 5.0.8 and 5.1:
bracketed-paste-magic may also be necessary in order to apply url-quote-magic.
Reference:
a9df6aaa70/Functions/Zle/url-quote-magic (L11)
This commit is contained in:
parent
9c08641d7c
commit
19c0b185ad
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
## Load smart urls if available
|
## Load smart urls if available
|
||||||
for d in $fpath; do
|
for d in $fpath; do
|
||||||
if [[ -e "$d/url-quote-magic" ]]; then
|
if [[ -e "$d/url-quote-magic" ]]; then
|
||||||
|
if [[ -e "$d/bracketed-paste-magic" ]]; then
|
||||||
|
autoload -Uz bracketed-paste-magic
|
||||||
|
zle -N bracketed-paste bracketed-paste-magic
|
||||||
|
fi
|
||||||
autoload -U url-quote-magic
|
autoload -U url-quote-magic
|
||||||
zle -N self-insert url-quote-magic
|
zle -N self-insert url-quote-magic
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue