Skip to content

feat: add --startup-cmd flag#371

Open
ethanpailes wants to merge 1 commit intomasterfrom
add-startup-cmd
Open

feat: add --startup-cmd flag#371
ethanpailes wants to merge 1 commit intomasterfrom
add-startup-cmd

Conversation

@ethanpailes
Copy link
Copy Markdown
Contributor

Issue Link

Closes #360

AI Policy Ack

Ack

This PR was:

  • mostly or completely vibe coded
  • mostly or completely meat coded
  • bit of both

I vibed the tests.

Description

This patch adds a new --startup-cmd flag which allows you to register a setup hook for a session so you can immediately get to work after session creation. Startup cmds support variable templates the same way that session names do, allowing your setup hooks to depend on shpool variables.

While I was at it I added template support to --dir and --cmd since I realized it was a bit weird to support templates in --startup-cmd but not either of those flags.

I also documented the template feature in the README.

This patch adds a new --startup-cmd flag which allows you to
register a setup hook for a session so you can immediately
get to work after session creation. Startup cmds support
variable templates the same way that session names do, allowing
your setup hooks to depend on shpool variables.

While I was at it I added template support to --dir and --cmd
since I realized it was a bit weird to support templates in
--startup-cmd but not either of those flags.

I also documented the template feature in the README.
@ethanpailes ethanpailes requested a review from maxhbooth May 9, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: add a --start-cmd flag

1 participant