macOS Serria + ZSH
环境变量写在 ~/.zshrc
但只在 ZSH 终端有效,其他软件中无效
~/.zshrc 登录时不自动加载的吗?
环境变量写在 ~/.zshrc
但只在 ZSH 终端有效,其他软件中无效
~/.zshrc 登录时不自动加载的吗?
1
SpicyCat Dec 2, 2016
zshrc 当然只在终端有效。要想其他软件也有效,那就用命令行启动软件
|
3
SpicyCat Dec 9, 2016
mac 用的不多,搜了下,需要修改 /etc/launchd.conf 文件
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x |