解決方案:
cat ~/.zshrc
添加?source ~/.bash_profile
?原因:? zshrc 是 zsh 啟動(dòng)時(shí)自動(dòng)加載的, 所以通過(guò) 添加?source ~/.bash_profile 來(lái)激活一下bash_profile里面的內(nèi)容。
解決方案:
cat ~/.zshrc
添加?source ~/.bash_profile
?原因:? zshrc 是 zsh 啟動(dòng)時(shí)自動(dòng)加載的, 所以通過(guò) 添加?source ~/.bash_profile 來(lái)激活一下bash_profile里面的內(nèi)容。