DEV Community

Cover image for Switching from tmux to Zellij
Fayaz
Fayaz Subscriber

Posted on • Originally published at fayazdev.tumblr.com

4 1 1 1 2

Switching from tmux to Zellij

Terminal Multiplexer

If you've used terminal multiplexer in command line, you know tmux is cool! If you haven't, you really should use something like tmux, especially if you SSH into remote servers often!

Why?

Tell me: what do you do, if suddenly your SSH connection is dropped while you're in the middle of an important installation or update process that needs your input?

That terminal session is lost and you cannot easily (if at all) get back to that installation process!

This may make your system a half cooked mess! A terminal multiplexer is what you need to solve this exact issue.

Let's just say: it'll save the day, by letting you log back into the session at the exact point you were dropped off from!

Save the day

The switch

Tmux is not just a terminal multiplexer though, it's a lot more than that. But this post is not about tmux. It's about me switching from tmux to Zellij. Why? Because Zellij is just better, and with a lot more batteries included.

I was keeping an eye on Zellij for some time now, but didn't get enough time to switch. But today was that day. So here I come Zellij!

P.S. you don't need to learn tmux to start using Zellij. So if you've never used tmux, just start with Zellij right away. Here are some tutorials.

Installation

As it happened, Zellij cannot be directly installed on the OS I'm using: Ubuntu. Also, this is a new laptop I'm setting up, so I needed to take a few steps to install Zellij. So may be this post will be useful to someone!

# install build essentials on Ubuntu
sudo apt update
sudo apt install build-essential

# Install rust / cargo
curl https://sh.rustup.rs -sSf | sh

# install zellij using cargo
cargo install --locked zellij

# That's it - now run Zellij!
zellij
Enter fullscreen mode Exit fullscreen mode

Further info

Here's a useful video walk through with Zellij:

That's it! Happy CLI mastery with Zellij, Oh My zsh and Alacritty!

Command line mastery

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or leave a kind comment!

Okay