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.
微信扫一扫