mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(cli): EMACS_PLUS_NO_PATH_INJECTION=1
emacs-plus contaminates the shell environment and interferes with Doom's envfile generator.
This commit is contained in:
parent
0d2f10dcab
commit
5965c4b12a
1 changed files with 1 additions and 0 deletions
1
bin/doom
1
bin/doom
|
|
@ -4,6 +4,7 @@
|
||||||
:; [ "x$EMACS" = xemacs ] && { type emacs >/dev/null 2>&1 || err=1; }
|
:; [ "x$EMACS" = xemacs ] && { type emacs >/dev/null 2>&1 || err=1; }
|
||||||
:; [ "x$err" = x ] || { echo "Error: failed to run Emacs with command '$EMACS'"; echo; echo "Are you sure Emacs is installed and in your \$PATH?"; exit 1; } >&2
|
:; [ "x$err" = x ] || { echo "Error: failed to run Emacs with command '$EMACS'"; echo; echo "Are you sure Emacs is installed and in your \$PATH?"; exit 1; } >&2
|
||||||
:; emacs="$EMACS ${DEBUG:+--debug-init} -q --no-site-file --batch"
|
:; emacs="$EMACS ${DEBUG:+--debug-init} -q --no-site-file --batch"
|
||||||
|
:; export EMACS_PLUS_NO_PATH_INJECTION=1
|
||||||
:; export __DOOMPID="${__DOOMPID:-$$}"
|
:; export __DOOMPID="${__DOOMPID:-$$}"
|
||||||
:; export __DOOMSTEP="${__DOOMSTEP:-0}"
|
:; export __DOOMSTEP="${__DOOMSTEP:-0}"
|
||||||
:; export __DOOMGEOM="${__DOOMGEOM:-`tput cols 2>/dev/null`x`tput lines 2>/dev/null`}"
|
:; export __DOOMGEOM="${__DOOMGEOM:-`tput cols 2>/dev/null`x`tput lines 2>/dev/null`}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue