cli/env: blacklist SHLVL & comment default blacklist
This commit is contained in:
parent
c2e9211776
commit
ce9162647d
1 changed files with 8 additions and 5 deletions
|
@ -61,11 +61,14 @@ Why this over exec-path-from-shell?
|
||||||
;; Helpers
|
;; Helpers
|
||||||
|
|
||||||
(defvar doom-env-blacklist
|
(defvar doom-env-blacklist
|
||||||
'("^DBUS_SESSION_BUS_ADDRESS$"
|
'(;; State that may be problematic if overwritten
|
||||||
"^GPG_AGENT_INFO$" "^\\(SSH\\|GPG\\)_TTY$"
|
"^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM$" "^USER$"
|
||||||
"^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$"
|
;; X server or services' variables
|
||||||
"^HOME$" "^PWD$" "^PS1$" "^R?PROMPT$" "^TERM$"
|
"^DISPLAY$" "^DBUS_SESSION_BUS_ADDRESS$"
|
||||||
;; Doom envvars
|
;; ssh and gpg variables (likely to become stale)
|
||||||
|
"^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$"
|
||||||
|
"^GPG_AGENT_INFO$"
|
||||||
|
;; Internal Doom envvars
|
||||||
"^DEBUG$" "^INSECURE$" "^YES$" "^__")
|
"^DEBUG$" "^INSECURE$" "^YES$" "^__")
|
||||||
"Environment variables to not save in `doom-env-file'.
|
"Environment variables to not save in `doom-env-file'.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue