The mcfly tool is an intelligent command-line shell history search utility written in Rust that upgrades standard reverse search (Ctrl + R) with a neural-network-trained relevance engine factoring in working directory, execution history, and command exit status. In newly deployed minimal Linux installations, container base images, or remote servers, running mcfly or attempting to invoke its keybindings yields bash: mcfly: command not found because the package is not pre-installed in default distributions.
Install mcfly via Pre-Compiled Static Binary
Installing the official pre-compiled release binary is the most reliable approach for minimal Linux environments without Rust build dependencies:
# Download latest mcfly archive for Linux x86_64
curl -sSL https://github.com/cantino/mcfly/releases/latest/download/mcfly-v0.9.3-x86_64-unknown-linux-musl.tar.gz -o /tmp/mcfly.tar.gz
# Extract binary directly into system bin
sudo tar -xzf /tmp/mcfly.tar.gz -C /usr/local/bin/
# Set executable execution permissions
sudo chmod +x /usr/local/bin/mcfly
# Remove temporary archive
rm -f /tmp/mcfly.tar.gz
# Verify installation
mcfly --version
Bind mcfly to Bash Shell Profile
Installing the binary alone does not hook into shell keystrokes; explicit profile sourcing is required:
- Append the shell initialization script to your user configuration:
echo 'eval "$(mcfly init bash)"' >> ~/.bashrc source ~/.bashrc - For Zsh users, add
eval "$(mcfly init zsh)"to~/.zshrcinstead. - Press Ctrl + R in your terminal; the neural search interface will now launch.
Install via Package Managers
Modern Linux package registries also feature mcfly:
# On Arch Linux:
sudo pacman -S mcfly
# On Alpine Linux:
apk add mcfly
# On systems with Homebrew:
brew install mcfly