From 8bdd4d0596b91a181eb51822c852b1f01c856605 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Jan 2023 20:16:20 +0530 Subject: [PATCH] ssh kitten: Install kitty bootstrap on systems other than linux/darwin as now we have kitten which works on more types of systems --- shell-integration/ssh/bootstrap-utils.sh | 5 ----- shell-integration/ssh/bootstrap.py | 2 -- 2 files changed, 7 deletions(-) diff --git a/shell-integration/ssh/bootstrap-utils.sh b/shell-integration/ssh/bootstrap-utils.sh index d656439d1..2af0af167 100644 --- a/shell-integration/ssh/bootstrap-utils.sh +++ b/shell-integration/ssh/bootstrap-utils.sh @@ -177,11 +177,6 @@ fi' > "$sh_script" } install_kitty_bootstrap() { - case "$(command uname)" in - Linux) ;; - Darwin) ;; - *) return ;; - esac kitty_exists="n" command -v kitty 2> /dev/null > /dev/null && kitty_exists="y" if [ "$kitty_remote" = "yes" -o "$kitty_remote-$kitty_exists" = "if-needed-n" ]; then diff --git a/shell-integration/ssh/bootstrap.py b/shell-integration/ssh/bootstrap.py index ac9c22b69..4cc4afef2 100644 --- a/shell-integration/ssh/bootstrap.py +++ b/shell-integration/ssh/bootstrap.py @@ -261,8 +261,6 @@ def exec_with_shell_integration(): def install_kitty_bootstrap(): kitty_remote = os.environ.pop('KITTY_REMOTE', '') - if os.uname().sysname not in ('Linux', 'Darwin'): - return kitty_exists = shutil.which('kitty') if kitty_remote == 'yes' or (kitty_remote == 'if-needed' and not kitty_exists): kitty_dir = os.path.join(data_dir, 'kitty', 'bin')