博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oh-my-zsh: bracketed-paste-magic:zle:47: not enough arguments for -U
阅读量:4698 次
发布时间:2019-06-09

本文共 499 字,大约阅读时间需要 1 分钟。

今天突然发现粘贴的时候就提示这个错误,通过查阅资料已经解决

解决方法

分析问题,是oh-my-zsh的bracketed-paste-magic功能出现了异常,并未找到更好的方法,暂时先禁用掉。

  • 修改 ~/.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
参考资料:

转载于:https://www.cnblogs.com/zhuxiaoxi/p/9472311.html

你可能感兴趣的文章