Function: exec-path-from-shell-copy-env
exec-path-from-shell-copy-env is an interactive and natively compiled
function defined in exec-path-from-shell.el.
Signature
(exec-path-from-shell-copy-env NAME)
Documentation
Set the environment variable $NAME 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.
Return the value of the environment variable.
Key Bindings
This command is not in any keymaps.
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-env (name)
"Set the environment variable $NAME 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.
Return the value of the environment variable."
(interactive "sCopy value of which environment variable from shell? ")
(cdar (exec-path-from-shell-copy-envs (list name))))