Zellij 命令速查表

Zellij Linux 命令备忘录

Zellij is a terminal workspace and multiplexer with panes, tabs, layouts, and plugin support.

📦 Installation

# Install via Cargo cargo install --locked zellij # Try without installing bash <(curl -L https://zellij.dev/launch) 

🚀 Starting & Managing Sessions

# Start a new Zellij session zellij # Start with a specific session name zellij --session mysession # Attach to an existing session zellij attach mysession # List all sessions zellij list-sessions # Kill a session zellij kill-session mysession 

🪟 Pane Management

ActionCommand / Shortcut
Split verticallyCtrl + pv
Split horizontallyCtrl + ph
Close paneCtrl + px
Move focusCtrl + p → Arrow keys
Resize paneCtrl + pr then arrows
Toggle floating paneCtrl + pf
Toggle stacked panesCtrl + ps

📑 Tab Management

ActionCommand / Shortcut
New tabCtrl + pt
Close tabCtrl + pq
Rename tabCtrl + pn
Move between tabsCtrl + p → Left/Right arrows

🛠️ Layouts

# Start with a predefined layout zellij --layout path/to/layout.kdl # Example layout file (KDL format) layout { tab { pane split_direction="vertical" { pane pane } } } 

⚙️ Configuration

  • Config file: ~/.config/zellij/config.kdl
  • Common options:
    keybinds { normal { bind "Ctrl g" { SwitchToMode "locked"; } } } 

🔌 Plugins

  • Zellij supports WebAssembly plugins.
  • Example usage:
    zellij --plugin path/to/plugin.wasm 

🧭 Useful Flags

--session <name> # Name the session --layout <file> # Use a layout file --help # Show help --version # Show version 

🗂️ Quick Reference

  • Sessionzellij, attach, list-sessions, kill-session
  • Pane → split, move, resize, float, stack
  • Tab → new, close, rename, switch
  • Layout--layout file.kdl
  • Config~/.config/zellij/config.kdl
  • Plugins.wasm modules
留言区
昵称
邮箱
网址
0/500
0 条评论
没有评论
查看更多
Powered by Twikoo v1.6.44
Twikoo 评论管理
密码