bracketed-paste-magic:zle:41: not enough arguments for -U
原因是zsh的插件出问题了,解法方法如下:
把 ~/.oh-my-zsh/lib/misc.zsh 文件中的第一段 if 注释掉 OK 啦
# 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
出处:https://www.v2ex.com/t/262240
http://stackoverflow.com/questions/25614613/how-to-disable-autocomplete-with-backslak-in-zsh