osx - Environment variables in Mac OS X - Stack Overflow
There's no need for duplication. You can set environment variables used by launchd (and child processes, i.e. anything you start from Spotlight) using launchctl setenv
.
For example, if you want to mirror your current path in launchd after setting it up in .bashrc
or wherever:
PATH=whatever:you:want launchctl setenv PATH $PATH
Read full article from osx - Environment variables in Mac OS X - Stack Overflow
No comments:
Post a Comment