macOS Catalina开始,新用户的默认shell改为了zsh, 对于zsh,使用.zshrc
编辑zprofile
vim ~/.zprofile
修改内容
export MAVEN_HOME=/Users/tan/workspace/tool/apache-maven-3.8.4
export PATH=$PATH:$MAVEN_HOME/bin
刷新配置
source ~/.zprofile
macOS Catalina开始,新用户的默认shell改为了zsh, 对于zsh,使用.zshrc
zprofilevim ~/.zprofile
export MAVEN_HOME=/Users/tan/workspace/tool/apache-maven-3.8.4
export PATH=$PATH:$MAVEN_HOME/bin
source ~/.zprofile