setenv variable with spaces in launchd.conf?

前端 未结 5 926
栀梦
栀梦 2021-01-02 07:58

I\'m a Linux user that just recently got a mac. I\'m trying to set up my IDE and found out that Macs don\'t use .bashrc / .bash_profile / etc. for GUI apps. So, if you have

5条回答
  •  长发绾君心
    2021-01-02 08:53

    On 10.8.2 the following command works fine:

    $ launchctl setenv MY_VARIABLE My\ value\ with\ spaces
    

    Verify with:

    $ launchctl getenv MY_VARIABLE
    My value with spaces
    

提交回复
热议问题