HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mcfly — A smart command history search and management tool. Replaces your default shell history search (`<Ct

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandmcflyandsearchhistoryclismart

Problem

How to use the mcfly command: A smart command history search and management tool. Replaces your default shell history search (<Ctrl r>) with an intelligent search engine providing context and relevance to the commands. More information: <https://github.com/cantino/mcfly>.

Solution

mcfly — A smart command history search and management tool. Replaces your default shell history search (<Ctrl r>) with an intelligent search engine providing context and relevance to the commands. More information: <https://github.com/cantino/mcfly>.

Print the mcfly integration code for the specified shell:
mcfly init {{bash|fish|zsh}}


Search the history for a command, with 20 results:
mcfly search --results {{20}} "{{search_terms}}"


Add a new command to the history:
mcfly add "{{command}}"


Record that a directory has moved and transfer the historical records from the old path to the new one:
mcfly move "{{path/to/old_directory}}" "{{path/to/new_directory}}"


Train the suggestion engine (developer tool):
mcfly train


Display help for a specific subcommand:
mcfly help {{subcommand}}

Code Snippets

Print the mcfly integration code for the specified shell

mcfly init {{bash|fish|zsh}}

Search the history for a command, with 20 results

mcfly search --results {{20}} "{{search_terms}}"

Add a new command to the history

mcfly add "{{command}}"

Record that a directory has moved and transfer the historical records from the old path to the new one

mcfly move "{{path/to/old_directory}}" "{{path/to/new_directory}}"

Train the suggestion engine (developer tool)

mcfly train

Context

tldr-pages: common/mcfly

Revisions (0)

No revisions yet.