Do not try to auto install kitten when generating completions

See https://github.com/kovidgoyal/kitty/discussions/10218
This commit is contained in:
Kovid Goyal
2026-07-03 23:30:59 +05:30
parent 0bb8502f31
commit bb452f2066

View File

@@ -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";;