ssh kitten: Install kitty bootstrap on systems other than linux/darwin as now we have kitten which works on more types of systems

This commit is contained in:
Kovid Goyal 2023-01-31 20:16:20 +05:30
parent df45a4e759
commit 8bdd4d0596
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 0 additions and 7 deletions

View File

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

View File

@ -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')