oh-my-zsh: bracketed-paste-magic:zle:47: not enough arguments for -U
阿新 • • 發佈:2018-08-14
今天 class 代碼 解決方法 and 註釋 pat https isa
今天突然發現粘貼的時候就提示這個錯誤,通過查閱資料已經解決
解決方法
分析問題,是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