Fix doom/reload-env on first-time generation
This commit is contained in:
parent
760dcbb8ea
commit
c9e9ef528d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue