Function: exec-path-from-shell-getenv
exec-path-from-shell-getenv is a natively compiled function defined in
exec-path-from-shell.el.
Signature
(exec-path-from-shell-getenv NAME)
Documentation
Get the environment variable NAME from the user's shell.
Execute the shell as interactive login shell, have it output the variable of NAME and return this output as string.
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
(defun exec-path-from-shell-getenv (name)
"Get the environment variable NAME from the user's shell.
Execute the shell as interactive login shell, have it output the
variable of NAME and return this output as string."
(cdr (assoc name (exec-path-from-shell-getenvs (list name)))))