fix(cli): ignore system/user git configs
So they don't interfere with straight in odd, unpredictable ways. If you *really* know what you're doing, set DOOMGITCONFIG to the path of a gitconfig file. This envvar may be renamed in the future, however. Close: #5640 Co-authored-by: M. Yas. Davoodeh <Davoodeh@users.noreply.github.com>
This commit is contained in:
parent
c36d1702fb
commit
a9c22b704b
2 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,7 @@ Why this over exec-path-from-shell?
|
|||
(defvar doom-env-blacklist
|
||||
'(;; State that may be problematic if overwritten
|
||||
"^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM\\(CAP\\)?$"
|
||||
"^USER$"
|
||||
"^USER$" "^GIT_CONFIG"
|
||||
;; X server or services' variables that shouldn't be persisted
|
||||
"^DISPLAY$" "^DBUS_SESSION_BUS_ADDRESS$" "^XAUTHORITY$" "^XDG_SESSION_TYPE$"
|
||||
;; Windows+WSL envvars that shouldn't be persisted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue