Share your Terminal with Multiple Cursors
2021-12-22We just released Zellij 0.23.0, which adds collaboration features to our terminal multiplexer.
This solution allows multiple users to be attached to the same Zellij session and each have their own cursor. The cursors appear in different colors, giving a Google-docs like experience in the terminal and allowing users to be focused not only on different tabs, but on different panes in the same tab. That way they can see each other type in real time.
We feel this is a great solution to pair program in the terminal or to receive outside assistance on local environment problems.
How can I try it out?
- Install the latest version
- Start it up and assign your session a name:
zellij attach --create my-cool-session
(you can also just start it up normally and be assigned a random session name). - Open a new terminal window and connect to your existing session:
zellij attach my-cool-session
- Open a new pane with
ctrl-p
+n
and see one different colored cursor for each window. - You can also open a new tab with
ctrl-t
+n
and see an indication that the cursor is focused on that tab.
A fun use-case for this is to have several terminal windows connected to the same Zellij session, one on each screen, focused on different tabs. That way you can natively switch between the contents of each screen without having to move windows around by switching your tab focus.
How can I try it out with a friend?
In order to do this, you’ll need your friend to ssh into your computer and attach to your existing session. If you are not in the same physical location (and/or on the same network), you’ll unfortunately have to do some extra work:
The safest way to do it is to use some sort of VPN service (there are some free options out there). Or if you’d like to try it out and are feeling brave, you can use ngrok to expose your ssh server to the world-wide-web. Be careful with this please.
Is there an easier way to connect to a remote session?
Not yet, but we’re working on it!
Right now we’re in the process of seeking funds in order to start a free service that would allow users to receive a shareable and secure URL from within Zellij and just share it with their friends, giving them permission and moderating who is connected.
If you’re as excited about this as we are, you can help out by registering for early access: https://www.devsession.is