Refresh exec-path & shell-file-name
When loading envvars, since `load-env-vars` only affects the environment and not Emacs' variables.
This commit is contained in:
parent
5b43b2840b
commit
a6cc66e21e
1 changed files with 6 additions and 2 deletions
|
@ -453,10 +453,14 @@ to least)."
|
||||||
(user-error "Your package autoloads are missing! Run `bin/doom refresh' to regenerate them")))
|
(user-error "Your package autoloads are missing! Run `bin/doom refresh' to regenerate them")))
|
||||||
|
|
||||||
;; Load shell environment
|
;; Load shell environment
|
||||||
(when (and (not noninteractive)
|
(when (and (or (daemonp) (display-graphic-p))
|
||||||
(file-readable-p doom-env-file)
|
(file-readable-p doom-env-file)
|
||||||
(require 'load-env-vars nil t))
|
(require 'load-env-vars nil t))
|
||||||
(load-env-vars doom-env-file)))
|
(load-env-vars doom-env-file)
|
||||||
|
(setq exec-path (append (split-string (getenv "PATH") ":")
|
||||||
|
(list exec-directory))
|
||||||
|
shell-file-name (or (getenv "SHELL")
|
||||||
|
shell-file-name))))
|
||||||
|
|
||||||
(require 'core-lib)
|
(require 'core-lib)
|
||||||
(require 'core-modules)
|
(require 'core-modules)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue