3 ms·
I prefer using vi bindings (from bash type "set -o vi" to enable) to the ^R method. If you know vi/vim then the results you get are very intuitive. Hit Esc to
by ahnick 12y ago
I prefer using vi bindings (from bash type "set -o vi" to enable) to the ^R method. If you know vi/vim then the results you get are very intuitive.
Hit Esc to enter vi mode and then hit "/". Type your search and hit enter. If the first result that comes up isn't what you are looking for then hit "n" for the next result. To go backwards do Shift + "n".
- piokuc 12y agoI didn't know this works in bash. I've been using this in Korn shell for many years and cannot imagine life without it...
- jeorgun 12y agoSo that's what it is! I was just getting increasingly frustrated, wondering why "?" wasn't working. I guess staying intuitive is a difficult game to play, when your premise (the default / most useful searching order) is inherently different from the norm.