From 5bc2fa187cb82dc926c57f1ca634fa2eed1f04e3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Nov 2021 10:27:51 +0530 Subject: [PATCH] Change the order of file checks since .zshrc is most likely to exist --- kitty/shell_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index 01a77f215..1270c53e2 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -74,7 +74,7 @@ def setup_fish_env(env: Dict[str, str]) -> None: def setup_zsh_env(env: Dict[str, str]) -> None: zdotdir = os.environ.get('ZDOTDIR') base = zdotdir or os.path.expanduser('~') - for q in ('.zshenv', '.zprofile', '.zshrc', '.zlogin'): + for q in ('.zshrc', '.zshenv', '.zprofile', '.zlogin'): if os.path.exists(os.path.join(base, q)): break else: