I would like to set the environment variables defined within Emacs available to inferior shells launched afterwards.
My use-case is to be able to switch Python (conda) environment within Emacs.
If I do:
(setenv "CONDA_DEFAULT_ENV" "py_39")
and launch an inferior shell with
C-u M-x shelland type
echo $CONDA_DEFAULT_ENV, I still have
According to this answer,
setenv should set environment variables for the inferior shell launched afterwards. It does not work for me.
FWIW: I am running