I want to use Ctrl + r to navigate in commands history, but I want to see all list of commands.

I want to view the list of history | grep some-term commands and going "up" or "down" choose the proper command I want to use.

I saw someone who add this somehow to his Mac terminal (maybe z-shell) and wondered if there is something similar to Debian Linux.

  • you can just use history command & call back !12 or !number of a command, use ctrl+R use alt+R or alt-O to run found command you may have all of this depending on you shell. – francois P Jun 26 '18 at 16:29

If your unhappy with the default Ctrl+R behaviour, I recommend you to install fzf (fuzzy finder).

Fzf replaces the Ctrl+R search with a so-much-better one. It has a lot more features for finding files and much more.

You should read the README from the the github page and the Examples from the wiki.


git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.