Function: exec-path-from-shell-copy-envs
exec-path-from-shell-copy-envs is a natively compiled function defined
in exec-path-from-shell.el.
Signature
(exec-path-from-shell-copy-envs NAMES)
Documentation
Set the environment variables with NAMES from the user's shell.
As a special case, if the variable is $PATH, then the variables
exec-path(var)/exec-path(fun) and eshell-path-env are also set appropriately.
The result is an alist, as described by
exec-path-from-shell-getenvs.
Source Code
;; Defined in /nix/store/a3f7aq5s6rdw5arrqvyppbs5jfrlsxa3-emacs-packages-deps/share/emacs/site-lisp/elpa/exec-path-from-shell-20260423.1833/exec-path-from-shell.el
;;;###autoload
(defun exec-path-from-shell-copy-envs (names)
"Set the environment variables with NAMES from the user's shell.
As a special case, if the variable is $PATH, then the variables
`exec-path' and `eshell-path-env' are also set appropriately.
The result is an alist, as described by
`exec-path-from-shell-getenvs'."
(let ((pairs (exec-path-from-shell-getenvs names)))
(mapc (lambda (pair)
(exec-path-from-shell-setenv (car pair) (cdr pair)))
pairs)))