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.
Here’s another mindfuck: gnu readline is so popular that developers of other software tend to implement its keybinds as hidden features/eastereggs. That’s why ctrl+u works in GTK text input boxes as well!
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 insudo
instead of spamming backspace…What does that do?
Delete until start of line. So essentially equivalent to spamming backspace a bunch.
I end up hitting Ctrl+u at work all the time and then being disappointed and holding backspace.
Bro. You just changed my life and don’t even realize it
Here’s another mindfuck: gnu readline is so popular that developers of other software tend to implement its keybinds as hidden features/eastereggs. That’s why ctrl+u works in GTK text input boxes as well!
history | grep <search term>
Does the job well if the key combo doesn’t work.
Followed by !xxx where xxx is the number of the command to re-run
This. I didn’t know about CTRL+R, but this has been my goto