禁止 oh-my-zsh 自动转义特殊字符

找到 oh-my-zsh 的配置文件夹,一般路径在 ~/.oh-my-zsh/lib/misc.zsh,打开,注释掉 if语句中的内容:

# *-magic is known buggy in some versions; disable if so
#if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; 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