Open edenman opened 7 years ago
I would be in favour of adding this, but it's not trivial (the source
d file could itself source
yet more files in turn).
Other than that: kudos to @ersiner for this nice little life-saver
I have a similar config, here is my solution:
source ~/.bash_profile
/usr/bin/env | while IFS=' =' read envvar ignorevalue; do
launchctl setenv ${envvar} ${!envvar}
done
My ~/.bash_profile just has one line:
source .bashrc
. For now I've just changed .osx-env-sync.sh to read from that file, but that's obviously not ideal. Would be cool if we could follow the chain ofsource
calls. I could imagine some people splitting up their bashrc into several files based on area of concern, for instance.