ctrl + r
gangHoly Crap. I have gotten into the arrow up mode. Then I went to History.
But, but, but ctrl + r. Holy crap.
Thank you kind sir or madam.
If you enjoy that, then let me introduce you you fzf - a fuzzy finder that has support for replacing ctrl + r in shells with fuzzy matching. Among other uses.
https://github.com/junegunn/fzf#key-bindings-for-command-line
You can also install https://github.com/dvorka/hstr to supercharge your
ctrl+r
Fish gang arise (no need for ctrl+r, just press up)
Is there a MacOS versión of this? Asking for a friend.
It’s the same,
ctrl
+r
. It is a bash/shell thing so works on any os that uses bash or similar shells. Note, it is not the command key, but ctrl, unlike a lot of other shortcuts on macos.
Bro, do you even
^R
?Or
history | grep {command}
Ctrl R > start typing
You’re welcome to have your life changed
What the actual… Thanks
deleted by creator
Y’all know about ctrl-r to search history, right? I went for so many years without even thinking to look for something better than up-arrow, so I have to mention it.
cat .bash_history | grep keyword
But yeah pretty much.
Me when configuring a switch.
deleted by creator
Finally the
ls
command!history | grep term
ls -la
ls -hal
ls -halal
I usually do ctrl+r but with zsh I can type the beginning of the command and press up and it will search that way too.
fish automatically searches as you type, just start typing and press -> when you find the command you need.