Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 12 Nov 2019, 13:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
McFly
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 2044
Location: Canada

PostPosted: 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
source /path/to/mcfly.bash
fi

Run . ~/.bashrc or restart your terminal emulator.
https://github.com/cantino/mcfly
Download :
https://github.com/cantino/mcfly/releases
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6988
Location: Auckland, New Zealand

PostPosted: Tue 30 Jul 2019, 05:19    Post subject:  

Quote:
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

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0308s ][ Queries: 12 (0.0044s) ][ GZIP on ]