Reset exec-path/shell-file-name on doom/reload-env
This commit is contained in:
parent
5c3188afd5
commit
fd48329c36
1 changed files with 6 additions and 1 deletions
|
@ -63,7 +63,12 @@ Uses the same mechanism as 'bin/doom env reload'."
|
||||||
(sit-for 1))
|
(sit-for 1))
|
||||||
(unless (file-readable-p doom-env-file)
|
(unless (file-readable-p doom-env-file)
|
||||||
(error "Failed to generate env file"))
|
(error "Failed to generate env file"))
|
||||||
(load-env-vars doom-env-file))
|
(load-env-vars doom-env-file)
|
||||||
|
(setq-default
|
||||||
|
exec-path (append (split-string (getenv "PATH") ":")
|
||||||
|
(list exec-directory))
|
||||||
|
shell-file-name (or (getenv "SHELL")
|
||||||
|
shell-file-name)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/reload-font ()
|
(defun doom/reload-font ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue