@barocio@emacs.ch For bash, I define my important env vars in .profile and source that from .bashrc at the top. This avoids having to worry about getting environment variables in programs not run from a shell since dash/sh is used for those and uses .profile. I've been doing this for years and still not sure why it's not standard procedure. It seems like the obvious solution so I am clearly missing something...