Setting environment variables on OS X

后端 未结 30 3225
你的背包
你的背包 2020-11-21 05:15

What is the proper way to modify environment variables like PATH in OS X?

I\'ve looked on Google a little bit and found three different files to edit:

30条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 05:39

    For a single user modification, use ~/.profile of the ones you listed. The following link explains when the different files are read by Bash.

    http://telin.ugent.be/~slippens/drupal/bashrc_and_others

    If you want to set the environment variable for gui applications you need the ~/.MacOSX/environment.plist file

提交回复
热议问题