NOTE: This open source project is pre-alpha. It works-- I'm using it every day-- but I haven't trained the prioritization linear perceptron yet because I'm still gathering training data, so the ordering is suboptimal.
- Rebinds
CTRL-Rto bring up a full-screen reverse history search with very smart prioritization. - Augments your shell history to track return status, timestamp, and execution directory.
- Unicode support throughout.
- Written in Rust, so it's super fast.
The key feature of McFly is smart command prioritization. The goal is for the command you want to run to be as close to the first suggestion as possible.
When suggesting a command, McFly takes into consideration:
- The directory where you ran the command. You're more likely to run the same command in the same directory in the future.
- What commands you typed before the command (e.g., the command's context).
- How often you run the command.
- When you ran the command.
- The command's exit status. You probably don't want to run old failed commands.
- Install Rust
- Compile with optimizations
cargo build --release
- Copy
./target/release/mcflyinto a location in your$PATH. (For example, you could create a directory at~/binand addexport PATH="$PATH:$HOME/bin"to your.bash_profile.)
Add . /path/to/this/repository/mcfly-bash.sh to your ~/.bash_profile or ~/.bashrc file.
- Add screencast to README.
- Fix history issues between windows by:
- Add terminal ID so that context can be terminal-dependent.
- Also use this to re-write Bash history file after adding and before history -r.
- Tell the user that McFly owns their history file now. This could fix all history bugs.
- Allow suggesting of the last command seen if it's been a while.
- Finish training the linear perceptron.
- For training, make score be dependent on position in the top N suggestions
- Learn common command options and autocomplete them in the suggestion UI?
- Sort command line args when coming up with the template matching string.
