Skip to content

Commit

Permalink
Merge pull request #101 from mnewt/eshell-path-env-in-buffers
Browse files Browse the repository at this point in the history
Set each instance of the buffer local variable eshell-path-env
  • Loading branch information
purcell authored Dec 15, 2020
2 parents 4ea306a + a45edbc commit d14d6d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exec-path-from-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ Additionally, if NAME is \"PATH\" then also update the
variables `exec-path' and `eshell-path-env'."
(setenv name value)
(when (string-equal "PATH" name)
(setq eshell-path-env value
exec-path (append (parse-colon-path value) (list exec-directory)))))
(setq exec-path (append (parse-colon-path value) (list exec-directory)))
;; `eshell-path-env' is a buffer local variable, so change its default
;; value.
(setq-default eshell-path-env value)))

;;;###autoload
(defun exec-path-from-shell-copy-envs (names)
Expand Down

0 comments on commit d14d6d2

Please sign in to comment.