I want to set the root level environment variable that comes from
sh(1) so that it is shared across all shells:
I can see in
/etc/profile there's a command
/usr/libexec/path_helper -s which prints default values of
PATH but it also has custom values set by other tools like
mono. How do those do this? I want to share my custom values as well.
I'm not going to add them to
/etc/profile because that can be changed due to an update and I don't see
gcloud/mono/conda specify their paths there. So what is the correct solution?
Any tips for keep all shells in sync would be very helpful.
I'm on macOS Catalina: 10.15.5 (19F101)