diff --git a/core/cli/env.el b/core/cli/env.el index a0c3ffbb3..6b1570892 100644 --- a/core/cli/env.el +++ b/core/cli/env.el @@ -60,8 +60,10 @@ Why this over exec-path-from-shell? '(;; State that may be problematic if overwritten "^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM\\(CAP\\)?$" "^USER$" - ;; X server or services' variables + ;; X server or services' variables that shouldn't be persisted "^DISPLAY$" "^DBUS_SESSION_BUS_ADDRESS$" "^XAUTHORITY$" + ;; Windows+WSL envvars that shouldn't be persisted + "^WSL_INTEROP$" ;; ssh and gpg variables (likely to become stale) "^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$" "^GPG_AGENT_INFO$"