Repository navigation
fix(install): sync the hook scripts with the CLI and name the user's shell in the next steps - #17
Conversation
…shell in the next steps - hooks/: copy the CLI's embedded hooks (shelltime/cli model/hooks). Curl installs got older scripts until `shelltime init` rewrote them: bash and zsh recorded the previous command again on an empty Enter, and fish ran gc and track on the terminal's input while it was still probing the terminal. - install.bash: the reload step names the user's own shell config from $SHELL (`source ~/.bashrc`) and offers opening a new terminal, so `shelltime init` isn't run in a shell that doesn't have it on PATH yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014EpZRgMC528MvzhF6oiKHo
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
☁️ Claude Code cloud · Refine shell initialization and hook installation UXImproved shell hook installation UX by directing uninitialized users to
21.2M tokens: 171 input · 95.5K output · 20.8M cache read · 300.4K cache write 📝 AI summaryReviewed the CLI and installation flows, proposed a plan, and updated Also removed the unnecessary privacy and opt-out messaging, added support for View this session on ShellTime → Updated 2026-11-11 14:58 UTC by ShellTime · totals for the whole session so far · the session page is visible to its owner |
|
/claude review Generated by Claude Code |
|
@claude review Generated by Claude Code |
|
Claude finished @AnnatarHe's task in 19s —— View job Review of PR #17I read the full diff against
hooks/bash.bash: Correct. hooks/zsh.zsh: Correct. hooks/fish.fish: Redirecting stdin from install.bash: The
CLAUDE.md: The note that Summary: The change is safe to merge. The PR says the hook files are byte-identical to the CLI's. I couldn't check that from this repo, so it's worth re-running |
Changes
hooks/: copied from the CLI's embedded hooks (
model/hooks/in shelltime/cli). They had drifted behind, so curl installs got older scripts untilshelltime initrewrote them:gcandtrackon the terminal's input while fish was still probing the terminal at startup.install.bash: the last message names the user's own shell, taken from
$SHELL, which is the login shell also undercurl | bash:An unknown or empty
$SHELLgets the old three-file wording. Users were runningshelltime initin a shell that didn't have it on PATH yet (shelltime: command not found).CLAUDE.md notes that
hooks/are copies of the CLI's hooks and must change together.Testing
bash -n install.bashandbash -n hooks/bash.bash;cmpshows the three hook files are byte-identical to the CLI's.SHELLset to bash, zsh, fish,/bin/shand empty.Companion to the shelltime/cli change that quiets
shelltime init, skips shells the user doesn't have, and makesgctell users to runshelltime initbefore setup.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.