# Zellij — Terminal Workspace with Batteries Included > Zellij is a terminal workspace (multiplexer) with batteries included. Written in Rust with sane defaults, discoverable keybindings, a layout system, floating panes, session management, and a WebAssembly plugin system. The modern alternative to tmux. ## Install Save as a script file and run: ## Quick Use ```bash # Install brew install zellij # macOS cargo install --locked zellij # Rust # Launch zellij # With layout zellij --layout compact # Named session zellij -s myproject zellij attach myproject zellij list-sessions ``` Default keybindings (press a mode key first): - `Ctrl+p` then `n` — new pane - `Ctrl+p` then `d` — pane direction (down/right) - `Ctrl+p` then `f` — toggle floating pane - `Ctrl+t` then `n` — new tab - `Ctrl+t` then `1-9` — go to tab - `Ctrl+n` then arrows — resize - `Ctrl+s` then `d` — detach session - `Ctrl+o` then `w` — session manager - `Ctrl+q` — quit ## Intro Zellij is a terminal workspace (multiplexer) written in Rust. Unlike tmux with its steep learning curve and cryptic keybindings, Zellij ships with discoverable UI hints, sane defaults, and a layout system. First released in 2021 by Aram Drevekenin, it quickly became the go-to tmux alternative for developers who want modern UX. - **Repo**: https://github.com/zellij-org/zellij - **Stars**: 31K+ - **Language**: Rust - **License**: MIT ## What Zellij Does - **Panes** — horizontal, vertical, floating - **Tabs** — named, reorderable - **Sessions** — persist across detach/reattach - **Layouts** — KDL-based declarative layouts - **Floating panes** — overlay panes - **Plugin system** — WebAssembly plugins (WASI) - **Session manager** — built-in session picker - **Discoverable UI** — mode indicators and key hints at bottom - **Copy mode** — search and select text - **Themes** — built-in themes ## Architecture Rust binary using crossterm for terminal rendering. Plugins run as WASM modules (WASI), isolated and sandboxed. Each pane is a separate PTY process. State is serialized for session persistence. ## Comparison | Multiplexer | Language | Defaults | Plugins | |---|---|---|---| | Zellij | Rust | Discoverable | WASM | | tmux | C | Cryptic | Shell | | screen | C | Basic | None | | Byobu | tmux wrapper | Simplified | tmux | ## 常见问题 FAQ **Q: Zellij vs tmux?** A: Zellij 开箱即用(新手友好、discoverable UI、浮动窗格),tmux 更成熟(服务器稳定性、社区更大、自定义更深)。两者都可以但 Zellij 上手快 10 倍。 **Q: 能和 Alacritty 配合?** A: 绝配。Alacritty(极简终端)+ Zellij(窗格管理)是很多开发者的黄金组合。 **Q: 支持 SSH 吗?** A: 在 SSH 会话中运行 Zellij 即可。断开后 `zellij attach` 恢复。 ## 来源与致谢 Sources - Docs: https://zellij.dev/documentation - GitHub: https://github.com/zellij-org/zellij - License: MIT --- Source: https://tokrepo.com/en/workflows/290aeef4-3641-11f1-9bc6-00163e2b0d79 Author: Script Depot