mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix doom/reload-env on first-time generation
This commit is contained in:
@ -119,7 +119,12 @@ imported into Emacs."
|
|||||||
(when IS-WINDOWS
|
(when IS-WINDOWS
|
||||||
(user-error "Cannot reload envvar file from within Emacs on Windows, run it from cmd.exe"))
|
(user-error "Cannot reload envvar file from within Emacs on Windows, run it from cmd.exe"))
|
||||||
(doom--compile
|
(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
|
:on-success
|
||||||
(let ((doom-reloading-p t))
|
(let ((doom-reloading-p t))
|
||||||
(unless arg
|
(unless arg
|
||||||
|
Reference in New Issue
Block a user