Skip to content

Commit c3cb2fe

Browse files
betegonclaude
andcommitted
fix(setup): use actual config file path in fpath manual hint
The error branch hardcoded ".zshrc" but shell.configFile could be .zshenv or ~/.config/zsh/.zshrc. Now interpolates the actual path, matching the success branch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 106adc4 commit c3cb2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/cli/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async function handleZshFpath(
202202
lines.push(` Restart your shell or run: source ${shell.configFile}`);
203203
} else if (result.manualCommand) {
204204
lines.push(`Completions: ${result.message}`);
205-
lines.push(` Add manually to .zshrc: ${result.manualCommand}`);
205+
lines.push(` Add manually to ${shell.configFile}: ${result.manualCommand}`);
206206
}
207207
} else if (isNewInstall) {
208208
lines.push(` Add to your .zshrc: ${getFpathCommand(completionDir)}`);

0 commit comments

Comments
 (0)