Skip to content

feat: add --startup-cmd flag#371

Open
ethanpailes wants to merge 1 commit into
masterfrom
add-startup-cmd
Open

feat: add --startup-cmd flag#371
ethanpailes wants to merge 1 commit into
masterfrom
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
Copy link
Copy Markdown

@maxhbooth maxhbooth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ethanpailes
Copy link
Copy Markdown
Contributor Author

I'll hold off on merging for a bit to give #352 some time to merge, since I already stomped on @GeoffChurch's diff a few times and I'm starting to feel bad about it.

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

2 participants