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

Hot sauce if you're wrong - web dev trivia for staff engineers

Hot sauce if you're wrong ยท web dev trivia for staff engineers (Chris vs Jeremy, Leet Heat S1.E4)

  • Shipping Fast: Test your knowledge of deployment strategies and techniques
  • Authentication: Prove you know your OAuth from your JWT
  • CSS: Demonstrate your styling expertise under pressure
  • Acronyms: Decode the alphabet soup of web development
  • Accessibility: Show your commitment to building for everyone

Contestants must answer rapid-fire questions across the full stack of modern web development. Get it right, earn points. Get it wrong? The spice level goes up!

Watch Video ๐ŸŒถ๏ธ๐Ÿ”ฅ

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

If you found this post helpful, please leave a โค๏ธ or a friendly comment below!

Okay