This library allows the user to set Emacs exec-path and PATH from the shell's PATH, so that shell-command, compile and the like work as expected on systems on which Emacs is not guaranteed to inherit a login shell's environment variables. It also allows other environment variables to be retrieved from the shell, so that Emacs will see the same values you get in a terminal.
Documentation at https://melpa.org/#/exec-path-from-shell
This library allows the user to set Emacs exec-path and PATH from the shell's PATH, so that shell-command, compile and the like work as expected on systems on which Emacs is not guaranteed to inherit a login shell's environment variables. It also allows other environment variables to be retrieved from the shell, so that Emacs will see the same values you get in a terminal.