Fix doom/reload-env on first-time generation

This commit is contained in:
Henrik Lissner 2019-12-15 21:54:01 -05:00
parent 760dcbb8ea
commit c9e9ef528d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -119,7 +119,12 @@ imported into Emacs."
(when IS-WINDOWS
(user-error "Cannot reload envvar file from within Emacs on Windows, run it from cmd.exe"))
(doom--compile
(format "%s -c '%s env%s'" shell-file-name doom-bin (if arg " -c" ""))
(format "%s -ic '%s env%s'"
(string-trim
(shell-command-to-string
(format "getent passwd %S | cut -d: -f7"
(user-login-name))))
doom-bin (if arg " -c" ""))
:on-success
(let ((doom-reloading-p t))
(unless arg