Reset exec-path/shell-file-name on doom/reload-env

This commit is contained in:
Henrik Lissner 2019-04-02 00:55:43 -04:00
parent 5c3188afd5
commit fd48329c36
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -63,7 +63,12 @@ Uses the same mechanism as 'bin/doom env reload'."
(sit-for 1))
(unless (file-readable-p doom-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
(defun doom/reload-font ()