Joined: 13 Nov 2013 Posts: 2115 Location: Canada
Posted: Fri 26 Jul 2019, 04:57 Post subject:
McFly Subject description: A Replacement To ‘Ctrl+R’ Bash History Search Feature
If you spend a lot of time on CLI mode, you should definitely used or heard about reverse search function in BASH. The keyboard shortcut to do reverse search in Bash is Ctrl+r. Using bash reverse search, we can bring up all commands which we used previously executed without having to re-type them every time. You can, of course, use UP/DOWN arrows to search your bash history. However, Ctrl+r will make this process much easier and faster. Today, I Stumbled upon a replacement to ‘Ctrl+r’ Bash history search feature. Meet “McFly”, a simple tool written in Rust programming language that replaces the default Ctrl+r Bash history search with an intelligent search engine. All command suggestions made by McFly are prioritized in real time with a small neural network. https://www.ostechnix.com/mcfly-a-replacement-to-ctrlr-bash-history-search-feature/
Installing manually from GitHub
Download the latest release from GitHub.
Install to a location in your $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.)
Copy mcfly.bash to a known location.
Add the following to the end of your ~/.bashrc file:
if [[ -r /path/to/mcfly.bash ]]; then
Joined: 20 May 2006 Posts: 6997 Location: Auckland, New Zealand
Posted: Tue 30 Jul 2019, 05:19 Post subject:
McFly maintains your default Bash history file
So what exactly does "maintains" mean? Does it delete commands which didn't successfully complete from your default bash history? Not sure that's necessarily a good idea... _________________ Do you know a good gtkdialog program? Please post a link here
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum