Your First Session
Name a session, work in it, detach -- and it keeps running without you.
What you'll see
rysh my-project-- start a named session.- Run commands like
git status. - Detach with
Ctrl+Othend. rysh list-sessions-- see it listed as detached with its PID.rysh attach my-project-- reattach with output, history, and layout restored.
Commands shown
rysh my-project
git status
d
rysh list-sessions
rysh attach my-project
Keys used
EnterCtrl+o
Transcript
0:00Name a session, work in it, then detach -- and it keeps running without you.
0:05Pass a name to rysh and you get a named session. Here we open one called my-project.
0:13Work as usual -- run commands, build, test. This pane is a normal shell.
0:21Press Ctrl+O for prefix mode, then d to detach. You drop back to your shell, but the session lives on.
0:30rysh list-sessions shows it -- still alive, marked detached, with its process ID.
0:39Reattach any time with rysh attach my-project. Your output, history, and pane layout are all restored.
Key takeaway
Sessions are persistent -- detach and reattach without losing any state.