Skip to content

Commit

Permalink
tweak(vars): minor edits in +env-deny-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 18, 2023
1 parent 9f2c175 commit d566710
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/me-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ MinEmacs hooks will be run in this order:
(defcustom +env-deny-vars
'(;; Unix/shell state that shouldn't be persisted
"^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM\\(CAP\\)?$"
"^USER$" "^GIT_CONFIG" "^INSIDE_EMACS$" "^_$"
"^USER$" "^GIT_CONFIG" "^INSIDE_EMACS$" "^SESSION_MANAGER$" "^_$"
"^JOURNAL_STREAM$" "^INVOCATION_ID$" "^MANAGERPID$" "^SYSTEMD_EXEC_PID$"
"^DESKTOP_STARTUP_ID$"
"^SESSION_MANAGER$"
;; KDE session
"^KDE_\\(FULL_SESSION\\|APPLICATIONS_.*\\|SESSION_\\(UID\\|VERSION\\)\\)$"
;; X server, Wayland, or services' env that shouldn't be persisted
Expand All @@ -242,11 +241,11 @@ MinEmacs hooks will be run in this order:
"^XDG_\\(VTNR\\|SEAT\\|SESSION_\\(TYPE\\|CLASS\\|ID\\|PATH\\|DESKTOP\\)\\)"
;; Socket envvars, like I3SOCK, GREETD_SOCK, SEATD_SOCK, SWAYSOCK, etc.
"SOCK$"
;; ssh and gpg variables that could quickly become stale if persisted.
;; SSH and GPG variables that could quickly become stale if persisted.
"^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$"
"^GPG_AGENT_INFO$"
;; Internal MinEmacs envvars
"^MINEMACSDIR$" "^MINEMACS_\\(DIR\\|IGNORE_.*\\|DEBUG\\|VERBOSE\\|NOT_LAZY\\|MSG_LEVEL\\)$")
;; MinEmacs envvars
"^MINEMACS\\(_?DIR\\|_\\(ALPHA\\|DEBUG\\|VERBOSE\\|NOT_LAZY\\|MSG_LEVEL\\|IGNORE_.*\\)\\)$")
"Environment variables to omit.
Each string is a regexp, matched against variable names to omit from
`+env-file' when saving evnironment variables in `+env-save'."
Expand Down

0 comments on commit d566710

Please sign in to comment.