编辑 ~/.zshrc
vim ~/.zshrc
添加内容, 注: /www/server/nvm
为 nvm 目录
export NVM_DIR="/www/server/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
网友评论