agterm-win 0.45.5 · cookbook

Park and resume

Put a project away by closing every workspace whose name starts with its prefix, and bring it back later from a JSON snapshot.

In agterm-win · Set it up in WSL · On Windows · The recipe

In agterm-win

An agterm-server session in an Ubuntu distribution, in a fresh agterm-win with the Nordic Blue Dark theme.

The sidebar without the A workspaces and A.json listed in the shell
agt-park.sh A saves A / frontend and A / backend to A.json and closes them.
The A / frontend and A / backend workspaces back in the sidebar
agt-resume.sh A recreates both workspaces and their sessions in the saved folders.

Set it up in WSL

In the distribution, from a copy of the recipe's folder.

$ sudo apt install jq zsh
$ mkdir -p ~/bin
$ cp agt-park.sh agt-resume.sh ~/bin/
$ chmod +x ~/bin/agt-park.sh ~/bin/agt-resume.sh

Then, from a shell in an agterm session:

$ agt-park.sh A && ls ~/.agterm-projects
$ agt-resume.sh A

On Windows

  • Parking ends the shells in those sessions, and their scrollback is lost, just as on macOS.
  • The resumed commands run under zsh -lc. Install zsh, or make the one-word change to bash that the recipe's README describes.

The recipe, with how it works and its limits: cookbook/park-and-resume.

← New session in workspace · All recipes · Project launcher →