Zellij
Back to Terminal
ZellijBeginner10 min

Zellij Terminal Workspace Guide: Layouts, Panes, and the Modern Tmux Alternative

Zellij vs Tmux — What's Different?

Zellij is a modern terminal multiplexer written in Rust. Unlike tmux (which has a 30-year-old config syntax), Zellij uses KDL for configuration, has a built-in layout system, floating panes, and a plugin system — all out of the box.

This guide covers Zellij from installation to custom layouts and session management.

Installation & First Session

Install Zellij:

brew install zellij

Layouts, Panes & Tabs

Run zellij to start a session. The interface shows a status bar at the bottom with key hints — you never need to memorize shortcuts.

Tip: Zellij's status bar always shows what keys are available in the current mode. Just look down.

Session Restore & Management

Layouts are Zellij's killer feature. Define a workspace as a KDL file and Zellij recreates it every time.

// ~/.config/zellij/layouts/dev.kdl
layout {
pane size=1 borderless {
plugin location="tab-bar"
}
pane split_direction="vertical" {
pane command="nvim"
pane split_direction="horizontal" {
pane command="npm" { args "run" "dev" }
pane command="npm" { args "run" "test" }
}
}
pane size=2 borderless {
plugin location="status-bar"
}
}

Launch with zellij --layout dev — your editor, dev server, and test runner all start at once.

Floating Panes & Plugins

Advanced Zellij features:

Layout Parsing Errors

Common Zellij issues:

Workspace Mastery

Zellij is set up. Explore more:

← PreviousLazyGit Tutorial: Fast Terminal Git UI for Staging, Committing, and BranchingNext →Obsidian Dataview Plugin Guide: Query Your Notes with DQL and Dynamic Tables