cantino / mcfly
- среда, 5 декабря 2018 г. в 00:16:54
Rust
Fly through your shell history. Great Scott!
McFly replaces your default ctrl-r Bash history search with an intelligent search engine that takes into account
your working directory and the context of recently executed commands. McFly's suggestions are prioritized
in real time with a small neural network.
TL;DR: an upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.
ctrl-r to bring up a full-screen reverse history search prioritized with a small neural network.The key feature of McFly is smart command prioritization powered by a small neural network that runs in real time. The goal is for the command you want to run to always be one of the top suggestions.
When suggesting a command, McFly takes into consideration:
brew tap cantino/mcfly https://github.com/cantino/mcflymcfly:
brew install mcfly~/.bashrc file:
if [[ -f "$(brew --prefix)/opt/mcfly/mcfly.bash" ]]; then
source "$(brew --prefix)/opt/mcfly/mcfly.bash"
fi. ~/.bashrc or restart your terminal emulator.mcfly:
brew uninstall mcflybrew untap cantino/mcfly~/.bashrc.$PATH. (For example, you could create a directory at ~/bin, copy mcfly to this location, and add export PATH="$PATH:$HOME/bin" to your .bashrc.)mcfly.bash to a known location.~/.bashrc file:
if [[ -f /path/to/mcfly.bash ]]; then
source /path/to/mcfly.bash
fi. ~/.bashrc or restart your terminal emulator.git clone https://github.com/cantino/mcfly and cd mcflycargo install --path .~/.cargo/bin is in your $PATH.~/.bashrc file:
if [[ -f /path/to/mcfly.bash ]]; then
source /path/to/mcfly.bash
fi. ~/.bashrc or restart your terminal emulator.To avoid McFly's UI messing up your scrollback history in iTerm2, make sure this option is unchecked:
cargo test
Cargo.toml and bump the version.git tag vx.x.xgit ci -m 'Bumping to vx.x.x'git push origin head --tagspkg/brew/mcfly.rb and update the version and SHAs. (shasum -a 256 ...)