From bb452f20666695e632bedb75de89c96a7976a672 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 Jul 2026 23:30:59 +0530 Subject: [PATCH] Do not try to auto install kitten when generating completions See https://github.com/kovidgoyal/kitty/discussions/10218 --- shell-integration/ssh/kitten | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell-integration/ssh/kitten b/shell-integration/ssh/kitten index 4375eca47..ceb520366 100755 --- a/shell-integration/ssh/kitten +++ b/shell-integration/ssh/kitten @@ -40,6 +40,10 @@ embed_exe="$(command dirname "$script_dir")/install/bin/kitten" exec_kitty "$@" } +# If called for shell completion with no binary available, do nothing to avoid +# downloading kitten and showing spurious output during tab completion. +[ "$1" = "__complete__" ] && exit 0 + case "$(command uname)" in 'Linux') OS="linux";; 'Darwin') OS="darwin";;