iterm去掉url添加的\

最近在复制url的时候会自动转义=成=,比如:http://www.jianshu.com/p/41bb4569fd25?a=1&b=1复制到iterm中会变成http://www.jianshu.com/u/b68285daf6dd\?a\=1\&b\=2
每次都要手动删掉,很麻烦,其实是oh-my-zsh 的 feature ,不是 bug。可以通过下面方法进行关掉:

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

你可能感兴趣的:(iterm去掉url添加的\)