parent
4bc70a8537
commit
9b991fc29f
3 changed files with 4 additions and 3 deletions
2
bin/doom
2
bin/doom
|
@ -7,7 +7,7 @@
|
|||
:; _DOOMPOST="$_DOOMBASE/.local/.doom.sh"
|
||||
:; $EMACS --no-site-file --script "$0" -- "$@"
|
||||
:; CODE=$?
|
||||
:; [ -x "$_DOOMPOST" ] && source "$_DOOMPOST"
|
||||
:; [ -x "$_DOOMPOST" ] && "$_DOOMPOST" "$0" "$@"
|
||||
:; exit $CODE
|
||||
|
||||
;; 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)
|
||||
(delimiter "__EOF__"))
|
||||
(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
|
||||
if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env)
|
||||
concat (format "%s=%s \\\n"
|
||||
|
|
|
@ -72,7 +72,7 @@ byte-compiled from.")
|
|||
(with-temp-file cache)
|
||||
(if doom-interactive-p t
|
||||
(message "Restarting..." )
|
||||
(doom-cli-execute-lines-after "NOTANGLE=1 \"$0\" \"$@\"")
|
||||
(doom-cli-execute-lines-after "NOTANGLE=1 \"$@\"")
|
||||
(kill-emacs 0))))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue