@@ -55,14 +55,19 @@ container start -ai nixos
56You land in `fish`. Exit the shell to stop the container.
56You land in `fish`. Exit the shell to stop the container.
58−> **Shortcut:** the [`c`](./c) script wraps create/start and names the container
58+> **Shortcut:** the [`c`](./c) script bundles the workflow and names the
59−> after the current directory (handy for per-project containers):
59+> container after the current directory (handy for per-project containers). It
60+> resolves the flake from its own location, so you can symlink it onto your
61+> `$PATH` and run it from any project:
62−> ./c init # create; append create args to add mounts, e.g.
64+> ./c init # build + load the image, then create the container
63−> ./c init -v $PWD:/work # (mounts can only be set at creation time)
65+> ./c init -v $PWD:/work # add create-time mounts (set only at creation)
64> ./c start # start and attach
66> ./c start # start and attach
69+> `c init` builds the archive in a temp dir, loads it, and deletes it — so no
70+> `image.tar.gz` is left lying around.
67## Re-running after a rebuild
72## Re-running after a rebuild