cli/env: blacklist SHLVL & comment default blacklist

This commit is contained in:
Henrik Lissner 2020-09-02 16:48:05 -04:00
parent c2e9211776
commit ce9162647d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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'.