3 ms·
My favorite unsung readline default is ctrl-o, for "operate-and-get-next”. If you’ve gone back and found a command from your history, ctrl-o will run it and the
by egwynn 9y ago
My favorite unsung readline default is ctrl-o, for "operate-and-get-next”. If you’ve gone back and found a command from your history, ctrl-o will run it and then tee up the next command. And, if you hit the end of your history, it will cycle back to the point you initially searched to. So if you have a set of a few commands (e.g., foreground your editor, run make, test the results) that you tend to keep repeating, it will replace “up up up enter” with just “ctrl-o”.
- marksellers 9y agoPlease accept my sincerest thanks.
- tonyarkles 9y agoWow. I don't have enough upvotes! Thanks! That's awesome!
- lathiat 9y agoOnce a year or so I read one of these articles and figure out how much time I can save (like this Ctrl-O). But I rarely do, I think I need to print out the cheatlist and put it on the wall behind my monitor so I can use them enough to get them into my patterns.
- deleted 9y ago[deleted]