返回 Skill 列表
extension
分类: 开发与工程无需 API Key

terminal-workspace

使用Zellij进行终端工作区管理。当用户提到终端会话、工作区、Zellij、终端布局或持久化终端环境时使用。涵盖会话管理、布局保存以及zp快速访问别名。

person作者: jakexiaohubgithub

Terminal Workspace Management

Persistent terminal workspaces per project using Zellij.

Core Concepts

  • Sessions: Working state (ephemeral, survives disconnects)
  • Layouts: Workspace recipes (permanent, recreatable)
  • Real persistence: Lives in applications (vim sessions, git)

Quick Access

# In ~/.zshrc or ~/.bashrc
alias zp='zellij attach $(basename "$PWD") || zellij -s $(basename "$PWD")'

Run zp in any project directory to create/attach its workspace.

Save Important Layouts

# If you have a complex setup worth preserving
zellij action dump-layout > ~/.config/zellij/layouts/project-name.kdl

Philosophy

Zellij sessions for convenience, not critical state. If it matters, it's in a file.