This is a personal enhanced fork of McFly with improved command suggestions and better search experience.
What's Better in This Fork:
- π§ Smarter Suggestions: Advanced neural network learns your patterns better
- β‘ Better Search Experience: Fuzzy search with bold highlighting makes matches easy to spot
- π― More Accurate Results: Improved algorithm gives you the right command faster
- π Better Context Understanding: Understands your workflow patterns more intelligently
- β¨οΈ Better Terminal Support: Updated keybindings (F4 instead of F1) for wider compatibility
McFly Enhanced replaces your ctrl-r shell history search with an intelligent search that actually understands what you're looking for. Instead of just matching text, it learns your habits and suggests commands that make sense for your current situation.
Why You'll Love It:
- π Smart History Search: Find commands faster with context-aware suggestions
- οΏ½ Location Awareness: Suggests commands you typically run in your current directory
- οΏ½ Workflow Understanding: Remembers command sequences and suggests what usually comes next
- β¨ Easy to Spot Matches: Bold highlighting makes it obvious what matched your search
- ποΈ Clean History: Easy removal of commands you don't want to see again
- π Works Everywhere: Supports Bash, Zsh, Fish, and PowerShell
The enhanced version learns from your behavior and suggests commands that actually make sense:
- π Directory-Smart: Remembers which commands you use in which folders
- π Sequence-Aware: Learns common command workflows (like
git addβgit commit) - π Usage-Based: Prioritizes commands you actually use frequently
- β° Time-Aware: Recent commands get appropriate priority
- β Success-Focused: Avoids suggesting commands that usually fail
- π― Learning: Gets better the more you use it
- Bold Match Highlighting: Easy to see exactly what matched your search
- Fuzzy Search: Find commands even with typos or partial matches
- Faster Results: Improved algorithm delivers suggestions quicker
# Clone this enhanced fork
git clone https://github.com/wstein/mcfly.git
cd mcfly
# Build and install
cargo install --path .Add to your shell configuration file:
Bash (~/.bashrc):
eval "$(mcfly init bash)"Zsh (~/.zshrc):
eval "$(mcfly init zsh)"Fish (~/.config/fish/config.fish):
mcfly init fish | sourcePowerShell ($PROFILE):
Invoke-Expression -Command $(mcfly init powershell | out-string)Then restart your terminal or run . ~/.bashrc / . ~/.zshrc / source ~/.config/fish/config.fish
# Add to your shell config file
export MCFLY_FUZZY=3# Show more results (default: 30)
export MCFLY_RESULTS=50
# Sort by relevance (recommended for smart suggestions)
export MCFLY_RESULTS_SORT=RANKFor all configuration options, see the original McFly documentation.
- Use it regularly: The smart suggestions get better as you use McFly more
- Enable fuzzy search: Set
MCFLY_FUZZY=3for the best search experience - Try partial matches: You don't need to remember exact command names
- Use directory context: McFly learns which commands you use in which folders
ctrl-r: Start McFly searchβ/β: Navigate suggestionsEnter: Run selected commandTab: Select command but don't run (edit first)Delete: Remove unwanted commands from historyF4: Toggle sort order (improved from F1 for better terminal support)
| Feature | Original McFly | This Enhanced Fork |
|---|---|---|
| Suggestions Quality | Good | Much smarter with better learning |
| Search Highlighting | Basic | Bold highlighting - easy to spot matches |
| Learning Speed | Standard | Faster adaptation to your patterns |
| Command Context | Basic | Better understanding of workflows |
| Setup | Standard | Same easy setup, better results |
This enhanced fork maintains full compatibility with original McFly:
- All original features work: Same interface, same shell support, with improved keybindings (F4 vs F1)
- Existing history preserved: Your command history transfers automatically
- Same configuration: All original environment variables work
For detailed troubleshooting, shell-specific setup help, and advanced features, see the comprehensive original McFly documentation.
- Original McFly Project: cantino/mcfly - Full documentation and community
- Shell Integration Help: See original docs for detailed shell-specific setup instructions
- All Settings: Complete list of environment variables in original documentation
- Issues & Support: Use the original project's resources for general McFly questions
This personal enhanced fork builds upon the excellent original McFly project by cantino. All core functionality remains faithful to the original design while adding meaningful improvements to the search experience.