最近在復(fù)制url的時候會自動轉(zhuǎn)義=成=,比如:http://www.itdecent.cn/p/41bb4569fd25?a=1&b=1復(fù)制到iterm中會變成http://www.itdecent.cn/u/b68285daf6dd\?a\=1\&b\=2
每次都要手動刪掉,很麻煩,其實是oh-my-zsh 的 feature ,不是 bug。可以通過下面方法進(jìn)行關(guān)掉:
vim ~/.oh-my-zsh/lib/misc.zsh
然后注釋掉:
if [[ $ZSH_VERSION != 5.1.1 ]]; then
for d in $fpath; do
if [[ -e "$d/url-quote-magic" ]]; then
if is-at-least 5.1; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
fi
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
break
fi
done
fi