Setting environment variables in Yosemite

前端 未结 4 1820
时光说笑
时光说笑 2021-01-13 04:42

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

This is this question Setting environment variables in OS X? but specifically for yose

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 05:39

    following solution worked for me.

    1. Open Terminal
    2. Click on Terminal Menu at right upper corner.
    3. click on Preferences
    4. Click on General
    5. Change Shell open with to command and put /bin/bash in text box.

    Now whatever configuration you do in ~/.bash_profile takes effect. Previously you were not using bash(were using ksh) that is why it was not reading .bash_profile.

提交回复
热议问题