@@ -28,7 +28,7 @@ switch $argv[1]
30 # Host login shell (by name): added to the image automatically and baked
30 # Host login shell (by name): added to the image automatically and baked
31− # in as the cmd + default $SHELL (what zellij panes etc. spawn), so it
31+ # in as the cmd + default $SHELL (what herdr panes etc. spawn), so it
32 # needn't be listed in container.nix. Falls back to bash.
32 # needn't be listed in container.nix. Falls back to bash.
33 set -l shell bash
33 set -l shell bash
34 test -n "$SHELL"; and set shell (path basename $SHELL)
34 test -n "$SHELL"; and set shell (path basename $SHELL)
@@ -74,19 +74,19 @@ switch $argv[1]
76 # Replace any existing container of the same name, then create it running
76 # Replace any existing container of the same name, then create it running
77− # zellij in a session named after the project (`<dir>-container`). This
77+ # herdr in a session named after the project (`<dir>-container`). This
78− # overrides the image's default plain-zellij cmd; `c start` attaches to it.
78+ # overrides the image's default plain-herdr cmd; `c start` attaches to it.
79 container rm --force $name 2>/dev/null
79 container rm --force $name 2>/dev/null
80 # The image only lays down /bin and /etc, so /tmp and /run don't exist;
80 # The image only lays down /bin and /etc, so /tmp and /run don't exist;
81− # without them anything that writes temp files (zellij, build tools, …)
81+ # without them anything that writes temp files (herdr, build tools, …)
82 # fails with ENOENT. Mount writable tmpfs at both.
82 # fails with ENOENT. Mount writable tmpfs at both.
83 container create --name $name --ssh -it -e "TERM=$term" \
83 container create --name $name --ssh -it -e "TERM=$term" \
84 --tmpfs /tmp --tmpfs /run --memory 8g --cwd /workspace $mounts $argv \
84 --tmpfs /tmp --tmpfs /run --memory 8g --cwd /workspace $mounts $argv \
85− $image /bin/zellij --session "$name-container"
85+ $image /bin/herdr session attach "$name-container"
86 case start
86 case start
87− # Start the container and attach to its cmd (zellij). TERM was baked into
87+ # Start the container and attach to its cmd (herdr). TERM was baked into
88 # the container env at create time (`-e TERM`), which survives this path.
88 # the container env at create time (`-e TERM`), which survives this path.
89− # Exiting zellij (PID1) stops the container; `c start` boots it again.
89+ # Exiting herdr (PID1) stops the container; `c start` boots it again.
90 container start -ai $name
90 container start -ai $name
92 echo "usage: c init [-c FILE] [create args] | start" >&2
92 echo "usage: c init [-c FILE] [create args] | start" >&2