I've added a few environment variables to my .bashrc
file, some of these are paths to customized bin/programs, such as:
export MY_ENV_PATH_VAR=/home/user/path/to/bin
I've refreshed spacemacs' .spacemacs.env
file by running SPC f e E
, however these new variables in my .bashrc
are not being included in .spacemacs.env
.
The beginning of the .spacemacs.env
file points out that variables which names match spacemacs-ignored-environment-variables
will not be included, however, I don't know how/where to check these regexps.
I've tried to go around this problem by adding the variables directly to the spacemacs.env
file and this seems to work sporadically, sometimes the variables are picked up and sometimes they're not and I get errors such as (Spacemacs) Error in dotspacemacs/user-env: Wrong type argument: stringp, nil
In my case, I'm calling (add-to-list 'exec-path (getenv "MY_ENV_PATH_VAR"))
from dotspacemacs/user-config
function.