From e19ce6cce6c594ae31e82aa9c5766ca3a9a8aa76 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 15 Apr 2022 22:47:57 +0800 Subject: [PATCH] clone-in-kitty: Skip some user-related environment variables --- kitty/launch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/launch.py b/kitty/launch.py index 2e5a49374..840b3c4a1 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -568,6 +568,7 @@ class CloneCmd: elif k == 'env': self.env = parse_bash_env(v) if self.envfmt == 'bash' else parse_null_env(v) for filtered in ( + 'HOME', 'LOGNAME', 'USER', # some people export these. We want the shell rc files to # recreate them 'PS0', 'PS1', 'PS2', 'PS3', 'PS4', 'RPS1', 'PROMPT_COMMAND', 'SHLVL',