mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
bin/doom: source postscript instead
This way the postscript can refer to the doom script via "$0" and its arguments via "$@" (making it easier for cli commands to rerun the last command).
This commit is contained in:
2
bin/doom
2
bin/doom
@ -7,7 +7,7 @@
|
||||
:; _DOOMPOST="$_DOOMBASE/.local/.doom.sh"
|
||||
:; $EMACS --no-site-file --script "$0" -- "$@"
|
||||
:; CODE=$?
|
||||
:; [ -x "$_DOOMPOST" ] && "$_DOOMPOST" "$0" "$@"
|
||||
:; [ -x "$_DOOMPOST" ] && source "$_DOOMPOST"
|
||||
:; exit $CODE
|
||||
|
||||
;; CLI ops tend to eat a lot of memory. To speed it up, stave off the GC, but
|
||||
|
@ -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 \"$@\"")
|
||||
(doom-cli-execute-lines-after "NOTANGLE=1 \"$0\" \"$@\"")
|
||||
(kill-emacs 0))))))
|
||||
|
||||
;;;###autoload
|
||||
|
Reference in New Issue
Block a user