LinuxCommandLibrary

mcfly

intelligent shell history search tool that uses a small neural network

TLDR

Launch mcfly search

$ mcfly search [pattern]
copy
Initialize in shell
$ eval "$(mcfly init bash)"
copy
Add command to history
$ mcfly add "[command]"
copy
Train neural network
$ mcfly train
copy
Show stats
$ mcfly stats
copy

SYNOPSIS

mcfly command [options]

DESCRIPTION

mcfly is an intelligent shell history search tool that uses a small neural network to suggest the most likely command based on context. It considers working directory, exit status, and command patterns.
The tool replaces Ctrl+R with a smarter search that prioritizes commands based on relevance rather than recency alone.

PARAMETERS

search [pattern]

Search history.
add command
Add command to history.
train
Train neural network.
stats
Show usage statistics.
init shell
Output shell initialization.
--light
Light color scheme.
--dump-facets
Debug facet information.

SHELL INTEGRATION

For bash:

$ eval "$(mcfly init bash)"
copy
For zsh:
$ eval "$(mcfly init zsh)"
copy
For fish:
$ mcfly init fish | source
copy

CAVEATS

Requires shell integration. Learning takes time. Database grows with usage. Initial suggestions may not be optimal.

HISTORY

mcfly was created by Andrew Cantino to bring intelligent command suggestion to the shell. It uses machine learning principles to provide context-aware history search, going beyond simple text matching.

SEE ALSO

hstr(1), fzf(1), history(1), bash(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community