From 309a6e9319ca4a9e496b031f40e805e570c4bf7a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Oct 2023 11:50:34 +0530 Subject: [PATCH] ... --- shell-integration/zsh/kitty-integration | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index e0e7e4bb3..2b22a1a0f 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -9,7 +9,7 @@ # kitty-integration won't automatically run. Zsh users who want integration with # kitty in all shells should add the following lines to their .zshrc: # -# if [[ -n $KITTY_INSTALLATION_DIR ]]; then +# if [[ -n "$KITTY_INSTALLATION_DIR" ]]; then # export KITTY_SHELL_INTEGRATION="enabled" # autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration # kitty-integration @@ -23,9 +23,9 @@ builtin emulate -L zsh -o no_warn_create_global -o no_aliases -[[ -o interactive ]] || builtin return 0 # non-interactive shell -[[ -n $KITTY_SHELL_INTEGRATION ]] || builtin return 0 # integration disabled -(( ! $+_ksi_state )) || builtin return 0 # already initialized +[[ -o interactive ]] || builtin return 0 # non-interactive shell +[[ -n "$KITTY_SHELL_INTEGRATION" ]] || builtin return 0 # integration disabled +(( ! $+_ksi_state )) || builtin return 0 # already initialized # 0: no OSC 133 [AC] marks have been written yet. # 1: the last written OSC 133 C has not been closed with D yet.