- First of all,
vi ~/.bash_profile
- Fill in the gradle configuration information
GRADLE_HOME=/usr/local/gradle-6.8.3 PATH=$PATH:$GRADLE_HOME/bin export GRADLE_HOME GRADLE_USER_HOME PATH export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
- Exit the preservation
: wq!
- Effective configuration
source ~/.bash_profile
- Continue to
vim ~/.zshrc
- Write source ~/.bash_profile and save
- Take effect configuration, OK
source ~/.zshrc