Mac M1 command line error complete:13: command not found: compdef,
Solution:
code ~/.zshrc
Add in file
autoload -Uz compinit
compinit
Save and reopen the command line without any error.
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
Similar Posts:
- Mac ADB prompts command not found
- Super detail: command not found: the scratch solution (add the scratch environment variable to Zsh under MAC)
- nvm is not compatible with the npm config prefix option:
- How to install “CONDA command not found” in MAC Anaconda
- [Solved] Linux Oracle bash: “sqlplus / as sysdba”: command not found
- [Solved] Mac install maven Error: zsh: command not found: MVN
- MVN often prompts command not found in MAC
- How to Solve __autoload() does not execute error
- Solve the problem of ADB: command not found on MAC
- [MacOS Catalina new Shell] How to Solve Error: The default interactive shell is now zsh