[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/exec-path-from-shell 0b59ea733b 012/114: Also set eshell-p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/exec-path-from-shell 0b59ea733b 012/114: Also set eshell-path-env when setting exec-path from $PATH |
Date: |
Tue, 5 Sep 2023 03:59:57 -0400 (EDT) |
branch: elpa/exec-path-from-shell
commit 0b59ea733b089b1c8f7c06f6a6c11e35f9876693
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Also set eshell-path-env when setting exec-path from $PATH
---
exec-path-from-shell.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index ae623d44e3..124eb47efa 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -81,14 +81,15 @@ variable of NAME and return this output as string."
(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 `exec-path' is
-also set appropriately. Return the value of the environment
-variable."
+As a special case, if the variable is $PATH, then `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? ")
(prog1
(setenv name (exec-path-from-shell-getenv name))
(when (string-equal "PATH" name)
- (setq exec-path (split-string (getenv "PATH") path-separator)))))
+ (setq eshell-path-env (getenv "PATH")
+ exec-path (split-string (getenv "PATH") path-separator)))))
;;;###autoload
(defun exec-path-from-shell-initialize ()
- [nongnu] branch elpa/exec-path-from-shell created (now 03fc0a38af), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell fead3d5360 002/114: Add autoload cookies, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 96ef5e6093 008/114: Add a readme, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 0b59ea733b 012/114: Also set eshell-path-env when setting exec-path from $PATH,
ELPA Syncer <=
- [nongnu] elpa/exec-path-from-shell 148145ff45 014/114: Force use of -e with built-in echo, which is not default in bash, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4223b12cf9 004/114: Extract PATH via marker, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 2ae5088c21 015/114: Use printf instead of echo (thanks @bradleywright), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell de589a96ba 017/114: Use parse-colon-path to split $PATH, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 183385ab94 016/114: Set checkdoc-minor-mode in local vars without using exec, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 8ec1a90951 019/114: Fully escape interspersed null characters too (see #5), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell f8e39d754c 023/114: Tidier code for double-quoting printf args, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 54f272f46e 024/114: Better docstrings, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell ab268a035a 026/114: Use the system-wide printf binary (if available) instead of shell built-in, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 1e51ae1f97 027/114: With tcsh, examine each variable with a separate shell invocation, ELPA Syncer, 2023/09/05