v0.2.0
v0.2.0 - Shell Integration & Configuration
✨ What's New
Shell Configuration & Detection Fix
- Fixed issue where try would launch wrong shell (e.g., zsh instead of fish) when $SHELL doesn't reflect the actual fixes running shell. Fixes #1 by @mishamsk
- Added optional shell override in config file - configure once during onboarding
- Config now uses JSON format with automatic migration from old format
Select-Only Mode for Shell Integration
- New --select-only (-s) flag outputs selected path instead of launching subprocess
- Enables cd in current shell: cd $(try -s)
- Full color support preserved when using command substitution
- TUI renders to stderr, path outputs to stdout
Shell Function Examples
# Add to .bashrc/.zshrc
trycd() {
dir=$(try -s "$@")
[[ -n "$dir" ]] && cd "$dir"
}
# Now use: trycd redis🔧 Improvements
- Refactored shell detection to eliminate code duplication
- Enhanced onboarding flow with shell configuration option
- Better color profile detection for terminal output
📚 Documentation
- Added comprehensive shell integration guide
- Documented rationale for subprocess vs cd approaches
- Included examples for bash, zsh, and fish shells
💔 Breaking Changes
None - fully backward compatible. Old text configs auto-migrate to JSON.
Full Changelog: v0.1.0...v0.2.0