Skip to content

fix(config show): don't show false 'Not configured' when shell integration is active#2066

Merged
max-sixty merged 2 commits intomainfrom
false-warning
Apr 10, 2026
Merged

fix(config show): don't show false 'Not configured' when shell integration is active#2066
max-sixty merged 2 commits intomainfrom
false-warning

Conversation

@max-sixty
Copy link
Copy Markdown
Owner

When the init line lives in a sourced file (common with dotfile managers like stow/chezmoi), wt config show couldn't find it in the scanned config files and reported "Not configured" despite integration working fine at runtime.

Now checks is_shell_integration_active() for the current shell before showing "Not configured" — if integration is provably active, shows "Configured (not found in ~/.zshrc)" instead.

Thanks to @wouter-intveld for reporting in #1306

Closes #1306

This was written by Claude Code on behalf of @max-sixty

…ation is active

When the init line lives in a sourced file (common with dotfile managers
like stow/chezmoi), config show couldn't find it and reported "Not
configured" despite integration working. Now checks runtime state for
the current shell and shows "Configured (not found in ~/.zshrc)" instead.

Closes #1306

Co-Authored-By: Claude <noreply@anthropic.com>
Tests the #1306 scenario: shell integration is active at runtime
(directive file set) but the init line isn't in ~/.zshrc (sourced from
another file). Verifies the output shows "Configured ... (not found in
~/.zshrc)" instead of the false "Not configured" warning.

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit 309dc38 into main Apr 10, 2026
22 of 23 checks passed
@max-sixty max-sixty deleted the false-warning branch April 10, 2026 21:20
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.

wt config show reports zsh as "Not configured" when init line is in a sourced file

1 participant