mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
2
bin/doom
2
bin/doom
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user