Skip to content

feat: add shell configuration and select-only mode #3

Merged
melonamin merged 1 commit intomainfrom
shell-integration-and-config
Aug 28, 2025
Merged

feat: add shell configuration and select-only mode #3
melonamin merged 1 commit intomainfrom
shell-integration-and-config

Conversation

@melonamin
Copy link
Owner

  • Add config-based shell override to fix incorrect $SHELL detection (fixes fish/custom shell issues)
  • Add --select-only (-s) flag to output path for shell integration
  • Implement proper color support when outputting to stderr - Refactor duplicate shell detection code into getShell() function
  • Update onboarding to include optional shell configuration
  • Migrate config from plain text to JSON format (backward compatible)
  • Document shell integration with examples for bash/zsh/fish

This allows users to either:

  1. Use default subprocess mode for
    isolated experiments
  2. Use select-only mode with cd $(try -s) for
    current shell navigation

Closes #1

  - Add config-based shell override to fix incorrect $SHELL detection
  (fixes fish/custom shell issues) - Add --select-only (-s) flag to
  output path for shell integration - Implement proper color support
  when outputting to stderr - Refactor duplicate shell detection code
  into getShell() function - Update onboarding to include optional shell
  configuration - Migrate config from plain text to JSON format
  (backward compatible) - Document shell integration with examples for
  bash/zsh/fish

  This allows users to either: 1. Use default subprocess mode for
  isolated experiments 2. Use select-only mode with `cd $(try -s)` for
  current shell navigation
@melonamin melonamin merged commit 31adca8 into main Aug 28, 2025
@melonamin melonamin mentioned this pull request Aug 28, 2025
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.

Try command doesn't respect current shell

1 participant