This commit is contained in:
Henrik Lissner 2020-08-19 12:08:16 -04:00
parent 4bc70a8537
commit 9b991fc29f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@
:; _DOOMPOST="$_DOOMBASE/.local/.doom.sh" :; _DOOMPOST="$_DOOMBASE/.local/.doom.sh"
:; $EMACS --no-site-file --script "$0" -- "$@" :; $EMACS --no-site-file --script "$0" -- "$@"
:; CODE=$? :; CODE=$?
:; [ -x "$_DOOMPOST" ] && source "$_DOOMPOST" :; [ -x "$_DOOMPOST" ] && "$_DOOMPOST" "$0" "$@"
:; exit $CODE :; exit $CODE
;; CLI ops tend to eat a lot of memory. To speed it up, stave off the GC, but ;; CLI ops tend to eat a lot of memory. To speed it up, stave off the GC, but

View file

@ -175,7 +175,8 @@ COMMAND, and passes ARGS to it."
(coding-system-for-read 'utf-8) (coding-system-for-read 'utf-8)
(delimiter "__EOF__")) (delimiter "__EOF__"))
(with-temp-file post-script (with-temp-file post-script
(insert (save-match-data (insert "#!/usr/bin/env sh\n"
(save-match-data
(cl-loop for env in process-environment (cl-loop for env in process-environment
if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env) if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env)
concat (format "%s=%s \\\n" concat (format "%s=%s \\\n"

View file

@ -72,7 +72,7 @@ byte-compiled from.")
(with-temp-file cache) (with-temp-file cache)
(if doom-interactive-p t (if doom-interactive-p t
(message "Restarting..." ) (message "Restarting..." )
(doom-cli-execute-lines-after "NOTANGLE=1 \"$0\" \"$@\"") (doom-cli-execute-lines-after "NOTANGLE=1 \"$@\"")
(kill-emacs 0)))))) (kill-emacs 0))))))
;;;###autoload ;;;###autoload