You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(install): prompt for setup mode and run p10k configure after init (#30)
## Summary
- `install.sh` now asks the user to choose between `setup` (interactive,
pick each step) and `init` (non-interactive, recommended defaults) when
invoked without arguments; passing a command directly still bypasses the
prompt
- `init` mode now runs `p10k configure` at the end so users get their
prompt theme set up immediately
- `AGENTS.md`: added **Documentation Sync — REQUIRED** section enforcing
that `README.md` and `README.zh-CN.md` must always be updated together
- `README.md` + `README.zh-CN.md`: updated curl install behavior
description and `init` feature list to reflect both changes above
## Testing
All 189 tests pass (`npm test`).
`README.md` is the source of truth. `README.zh-CN.md` is its Simplified Chinese translation.
83
+
84
+
**You MUST update both files in the same commit** whenever changes affect user-facing content (features, commands, file paths, install behavior, directory layout). Updating one without the other is never acceptable.
85
+
86
+
Checklist for README changes:
87
+
- Paths and directory structures match between both files
88
+
- Command tables and descriptions reflect the current behavior
89
+
-`install.sh` default behavior is accurately described in both files
90
+
- The installed file layout section reflects the current shipped config structure
The installer now defaults to `init`, bootstraps missing `zsh` and Node.js/npm when possible, downloads a temporary copy of the repo, runs `npm ci`, and launches suitup inside `zsh`.
51
+
The installer bootstraps missing `zsh` and Node.js/npm when possible, downloads a temporary copy of the repo, runs `npm ci`, then asks whether you want interactive `setup` or non-interactive `init` before launching inside `zsh`.
52
+
53
+
You can also pass a command directly to skip the prompt:
p.log.info("Powerlevel10k is selected, but `~/.p10k.zsh` was not found. Suitup keeps a basic prompt until you run `p10k configure` in zsh, which avoids dropping you into an interactive wizard during setup.");
p.log.info("Powerlevel10k is selected, but `~/.p10k.zsh` was not found. Suitup keeps a basic prompt until you run `p10k configure` in zsh, which avoids dropping you into an interactive wizard during setup.");
0 commit comments