Environment variables in Mac OS X

后端 未结 9 1527
萌比男神i
萌比男神i 2020-11-22 14:57

Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.

No

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 15:05

    For GUI apps, you'll have to create and edit ~/.MacOSX/environment.plist. More details here. You will need to log out for these to take effect. I'm not sure if they also affect applications launched from Terminal, but I assume they would.

    For apps launched from Terminal, you can also edit the ~/.profile file.

提交回复
热议问题