wishlist icon indicating copy to clipboard operation
wishlist copied to clipboard

kitty shell and remove dev setup

Open datner opened this issue 2 years ago • 5 comments

Hey, I've been getting into ssh stuff and because charmbracelet make the best ssh tools bar-none, it was a no-brainer to want to use your tools. I am also using kitty term, which has absolutely amazing capabilities that I am not willing to pass up on. Usually when ssh-ing I would drag my dotfiles so I have my env set up and ready. But it requires you use a "kitten" to ssh with: kitty +kitten ssh user@host. This ofc does not work with wishlist. So I have 2 questions:

  1. How would you suggest communicating with a remote dev box? assume many dozens of dev boxes and ephemeral short-lived dev boxes with varying Linux-based OS. So lengthy setups or hacking a bash script to do it is really out of the question
  2. How can I make wishlist work with the kitty kitten?

datner avatar Aug 14 '23 10:08 datner

Wishlist unfortunately would not work with kitty +kitten ssh, as we don't actually call any system binaries to connect.

That being said, sendenv/setenv can be used in plain SSH config (or in the wishlist.yml configuration file), and the file copies can be done in the remotecommand.

caarlos0 avatar Aug 21 '23 12:08 caarlos0

noooooo

datner avatar Aug 22 '23 09:08 datner

From the looks of it, Kitty seems to provide at least the ability to be remote controlled via unix sockets: https://sw.kovidgoyal.net/kitty/remote-control/#remote-control-via-a-socket

Go can communicate via unix sockets: https://pkg.go.dev/net#Dial

So theoretically, one could modify Wishlist to enable Kitty SSH connections via unix socket messages.

Mansarde avatar Aug 30 '23 03:08 Mansarde

@Mansarde I hope you don't mean me, I am not pretentious enough to believe I can maintain a fork of this

datner avatar Aug 31 '23 20:08 datner

Hehe, no problem.^^ I just wanted to show that there is a way to do it without making Wishlist call (and therefore require) certain binaries to exist on the system. Maybe someone with enough competence and time might be interested enough to create a PR for this, you never know.

Mansarde avatar Sep 01 '23 16:09 Mansarde

This is not something we have in mind for the future of the project, therefore, I'm closing it.

Thanks!

caarlos0 avatar Feb 29 '24 15:02 caarlos0