首页 > 其他 > 详细

oh-my-zsh: bracketed-paste-magic:zle:47: not enough arguments for -U

时间:2018-08-14 10:52:51      阅读:290      评论:0      收藏:0      [点我收藏+]

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

解决方法

分析问题,是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/mengff/p/9460460.html https://www.v2ex.com/t/262240 https://stackoverflow.com/questions/25614613/how-to-disable-zsh-substitution-autocomplete-with-url-and-backslashes

oh-my-zsh: bracketed-paste-magic:zle:47: not enough arguments for -U

原文:https://www.cnblogs.com/zhuxiaoxi/p/9472311.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!