Make doom/reload-env run 'doom env' through user's SHELL

This commit is contained in:
Henrik Lissner 2019-12-15 21:42:56 -05:00
parent 7095bdb7ce
commit cccaa4f9f3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -114,7 +114,8 @@ If passed the prefix ARG, clear the envvar file. Uses the same mechanism as
An envvar file contains a snapshot of your shell environment, which can be An envvar file contains a snapshot of your shell environment, which can be
imported into Emacs." imported into Emacs."
(interactive "P") (interactive "P")
(doom--compile (format "%s env%s" doom-bin (if arg " -c" "")) (doom--compile
(format "%s -c '%s env%s'" shell-file-name doom-bin (if arg " -c" ""))
:on-success :on-success
(let ((doom-reloading-p t)) (let ((doom-reloading-p t))
(unless arg (unless arg