Skip to main content

attach_session

Function attach_session 

Source
pub fn attach_session(name: &str) -> Result<()>
Expand description

Attaches to a Zellij session by name.

When already inside Zellij, switches to the session in-place to avoid nesting. When outside, spawns an interactive zellij attach with inherited stdio.

ยงErrors

  • Invoking zellij attach or zellij action switch-session fails.