mac 配置/etc/profile重启后不生效 在今年苹果公司发布了macOS Catalina(10.15),macOS的默认终端从bash变成了zsh 。 解决: vim ~/.zshrc 在 ~/.zshrc 文件最后,增加一行: source /etc/profile