branch: elpa/exec-path-from-shell
commit 9c25f03459b7654d7c9880c81f6806dda0660f28
Author: Sebastian Wiesner <[email protected]>
Commit: Sebastian Wiesner <[email protected]>
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)