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:
parent
df45a4e759
commit
8bdd4d0596
@ -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
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user