From b944cdddeb17c7e7dd81302ad4a413c8a11e2926 Mon Sep 17 00:00:00 2001 From: pagedown Date: Thu, 24 Mar 2022 22:00:16 +0800 Subject: [PATCH] ssh kitten: Fix python bootstrap checking zsh rc files with ZDOTDIR --- shell-integration/ssh/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.py b/shell-integration/ssh/bootstrap.py index 3d3248e7d..f47debd62 100644 --- a/shell-integration/ssh/bootstrap.py +++ b/shell-integration/ssh/bootstrap.py @@ -219,7 +219,7 @@ def exec_zsh_with_integration(): os.environ['KITTY_ORIG_ZDOTDIR'] = zdotdir # dont prevent zsh-newuser-install from running for q in ('.zshrc', '.zshenv', '.zprofile', '.zlogin'): - if os.path.exists(os.path.join(HOME, q)): + if os.path.exists(os.path.join(zdotdir, q)): os.environ['ZDOTDIR'] = shell_integration_dir + '/zsh' os.execlp(login_shell, os.path.basename(login_shell), '-l') os.environ.pop('KITTY_ORIG_ZDOTDIR', None) # ensure this is not propagated