-
Hello, I've recently discovered WezTerm and really enjoying using it, thanks! I have a simple script (ssh.sh) which lets me open ssh sessions in new tabs. With WezTerm I can do this like this:
That works great, but I'd prefer to use I can do that with this command:
But that opens the new shell in new window rather than a tab. Is there a way to open ssh sessions in a new tab and have splits automatically open on the ssh host? Thanks for any pointers! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
In the latest release, wezterm will automatically populate ssh_domains from your ssh config. If you have this in your
you'll have two ssh domains created:
armed with the domain name, you can do: $ wezterm cli spawn --domain-name SSH:example.nz to use the cli to spawn a new tab in that domain. Docs for wezterm cli spawn. You can use CTRL-SHIFT-P (by default) to open the Command Palette and fuzzy match You can use the CTRL-SHIFT-L (by default) to open the debug overlay and then type in |
Beta Was this translation helpful? Give feedback.
In the latest release, wezterm will automatically populate ssh_domains from your ssh config.
If you have this in your
~/.ssh/config
you'll have two ssh domains created:
SSH:example.nz
- works likewezterm ssh
SSHMUX:example.nz
- requires wezterm's multiplexer to be installed on the remotearmed with the domain name, you can do:
$ wezterm cli spawn --domain-name SSH:example.nz
to use the cli to spawn a new tab in that domain. Docs for wezterm cli spawn.
You can use CTRL-SHIFT-P (by default) to open the Command Palette and fuzzy match
example.nz
and spawn a connection that way, or just fuzzy match onssh
to find all your ssh hosts in there.You can use the CTRL-SHIFT-L (b…