I would like to source a shell script that changes my environment variables from within Emacs. That is, I would like the shell script to change the environment in which Emacs runs, and I would like to do this from within a running Emacs session.
In other words:
- I start Emacs from
- I would like to source a
zshscript from within Emacs that changes environment variables such as
Specifically, I want to use an Emacs package (emacs-jedi) that requires access to this Python distribution, but currently I need to unset
LD_LIBRARY_PATH first to start Emacs, so I would need to set it later so that I can use
emacs-jedi from within Emacs.
Is this at all possible?