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
用心写代码,不辜负程序员之名。