遇到问题:.bash_profile换了终端不生效
mac终端类型有两种,zsh和bash,
其中,bash初始化默认.bash_profile
zsh初始化默认.zshrc
我的Catalina系统默认zsh终端,所以.bash_profile并不会初始化。
切换一下即可:
chsh -s /bin/bash
遇到问题:.bash_profile换了终端不生效
mac终端类型有两种,zsh和bash,
其中,bash初始化默认.bash_profile
zsh初始化默认.zshrc
我的Catalina系统默认zsh终端,所以.bash_profile并不会初始化。
切换一下即可:
chsh -s /bin/bash