Fork me on GitHub

mac m1 命令行报错 complete:13: command not found: compdef

mac m1 命令行报错 complete:13: command not found: compdef,

解决方法:

code ~/.zshrc

在文件加入

autoload -Uz compinit
compinit
保存,重新打开命令行,不再报错。
autoload -Uz compinit
compinit
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

 

posted @ 2021-11-23 15:26  思考的大腿  阅读(1045)  评论(0编辑  收藏  举报