Skip to content

Add a broke command to start it again - #1

Merged
minimus7 merged 1 commit into
mainfrom
broke-command
Nov 9, 2026
Merged

minimus7 merged 1 commit into
mainfrom
broke-command

Conversation

@minimus7

@minimus7 minimus7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Typing broke in a new Terminal window now starts broke and opens it. Before, people had to paste cd ~/broke && npm run app or find Start broke.command.

  • install.sh adds alias broke='node "<dir>/scripts/start.mjs"' to ~/.zshrc (Mac default), and to ~/.bashrc / ~/.bash_profile if they exist. It skips the line if it is already there, so running the installer again adds nothing.
  • start.mjs prints "To start it again later, open a new Terminal window and type: broke" on the first run from the installer.
  • README: "To start it again: open a new Terminal window and type broke."

Not done: keeping broke running after Terminal closes, or starting it at login. Both need a way to stop it again, which adds more to explain than they save.

Tested

Throwaway install with BROKE_DIR and a scratch HOME, port 3600:

  1. Install ran, setup page answered 200, alias written once to the scratch .zshrc.
  2. Stopped the server (port down), then zsh -i -c broke from a new shell: broke started and /setup answered 200.
  3. Ran the installer again: still one alias line.

Screenshots

Terminal only, no change to the app's pages.

🤖 Generated with Claude Code

@minimus7
minimus7 merged commit 0d9ccfa into main Nov 9, 2026
3 checks passed
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.

1 participant