ctrl + r
gang
Holy 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
Man I over use it at work - even when sitting in front of a pwsh prompt
You can also install https://github.com/dvorka/hstr to supercharge your ctrl+r
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.
Finally the ls
command!
Up up up up up up up up up oh wait down
you allllways overshoot
Based
Bro, do you even ^R
?
ctrl+p gang RISE UP
cat /var/www/vhosts.d/l[tab]o[tab]l[tab]a[tab]...
lola 🤨?
Time to up your game with Ctrl + R reverse search! 🤓
Oh, and Ctrl + Shift + R brings you back in the search, niiiiice.
Thank you kind stranger 👍 ☺️.
Woah. Quality of meme in this site amazes me.
It's more or less like on reddit, but less users.
*fewer
It's more or fewer like on Reddit, but with less users.
ah there's my password...
Guilty. Even knowing better ways laziness wins. Skyrim console too.
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.
Wait until they learn that you can ctrl+u
when you mistyped your password in sudo
instead of spamming backspace...
history | grep term
- vim ~/.inputrc
- Paste the following:
"\e[A": history-search-backward "\e[B": history-search-forward
Thank me later
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.
cat .bash_history | grep keyword
But yeah pretty much.
Why not just history | grep keyword
then? Works in any directory.
Me when configuring a switch.
Since this post triggered hidden gems: ^old^new
will substitute old
with new
from the last command and execute.
esc + k
for me!
(vi for life)
I feel this in my soul. Or when you realize you're hitting up up up up to find something trivial like ls
and it would have been more efficient to just type ls
. LOL.
Fish finally broke me of this habit, and now it's one of the first things I install on any system
another happy fish convert here too!
linuxmemes
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!