emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/exec-path-from-shell 9c25f03459 006/114: Simplify initiali


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 9c25f03459 006/114: Simplify initialization
Date: Tue, 5 Sep 2023 03:59:56 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit 9c25f03459b7654d7c9880c81f6806dda0660f28
Author: Sebastian Wiesner <lunaryorn@gmail.com>
Commit: Sebastian Wiesner <lunaryorn@gmail.com>

    Simplify initialization
---
 exec-path-from-shell.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index c507a750b0..d8082abd12 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -79,9 +79,8 @@ Return the value of the environment variable."
 (defun exec-path-from-shell-initialize ()
   "Set $PATH and `exec-path' from the user's shell."
   (interactive)
-  (let ((path-from-shell (exec-path-from-shell-getenv "PATH")))
-    (setenv "PATH" path-from-shell)
-    (setq exec-path (split-string path-from-shell path-separator))))
+  (setq exec-path (split-string (exec-path-from-shell-copy-env "PATH")
+                                path-separator)))
 
 
 (provide 'exec-path-from-shell)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]