exec-path-from-shell 
- Description
- Get environment variables such as $PATH from the shell
- Latest
- exec-path-from-shell-2.2.0.20250922.141302.tar (.sig), 2025-Sep-22, 60.0 KiB
- Maintainer
- Steve Purcell <steve@sanityinc.com>
- Website
- https://github.com/purcell/exec-path-from-shell
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install or list-packages.
Full description
On OS X (and perhaps elsewhere) the $PATH environment variable and
`exec-path' used by a windowed Emacs instance will usually be the
system-wide default path, rather than that seen in a terminal
window.
This library allows the user to set Emacs' `exec-path' and $PATH
from the shell path, so that `shell-command', `compile' and the
like work as expected.
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.
If you use a non-POSIX-standard shell like "tcsh" or "fish", your
shell will be asked to execute "sh" as a subshell in order to print
out the variables in a format which can be reliably parsed. "sh"
must be a POSIX-compliant shell in this case.
Note that shell variables which have not been exported as
environment variables (e.g. using the "export" keyword) may not be
visible to `exec-path-from-shell'.
Installation:
ELPA packages are available on Marmalade and MELPA. Alternatively,
place this file on a directory in your `load-path', and explicitly
require it.
Usage:
(require 'exec-path-from-shell) ;; if not using the ELPA package
(exec-path-from-shell-initialize)
Customize `exec-path-from-shell-variables' to modify the list of
variables imported.
If you use your Emacs config on other platforms, you can instead
make initialization conditional as follows:
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
Alternatively, you can use `exec-path-from-shell-copy-envs' or
`exec-path-from-shell-copy-env' directly, e.g.
(exec-path-from-shell-copy-env "PYTHONPATH")
Old versions
| exec-path-from-shell-2.2.0.20241107.71915.tar.lz | 2024-Nov-07 | 16.6 KiB |
| exec-path-from-shell-2.2.0.20240411.85903.tar.lz | 2024-Apr-11 | 16.6 KiB |
| exec-path-from-shell-2.1.0.20240216.160639.tar.lz | 2024-Mar-31 | 16.4 KiB |
| exec-path-from-shell-2.1.0.20240104.172156.tar.lz | 2024-Jan-04 | 16.4 KiB |
| exec-path-from-shell-2.1.0.20231110.172728.tar.lz | 2023-Nov-10 | 16.4 KiB |
| exec-path-from-shell-2.1.0.20231104.93837.tar.lz | 2023-Nov-04 | 16.4 KiB |
| exec-path-from-shell-2.1.0.20231010.71652.tar.lz | 2023-Oct-10 | 16.4 KiB |
| exec-path-from-shell-2.1.0.20230804.64559.tar.lz | 2023-Sep-05 | 16.4 KiB |