I really like this comic. Just in case someone didn’t know in Linux you can:
-Ctrl + r to search previous commands
Or
-type history and precede the command number by an exclamation (!) to repeat the command (I.e. “!13”)
Fish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.
There is an advantage to this approach though: fewer errors. You’re plucking a known working command from a list instead of manually typing a (possibly) broken version of it. Worse yet is when it’s a command where typematic mistakes cause unintended side effects like data loss. So, mashing up
100 times can be pretty smart, especially if you’re not a great typist.
@dejected_warp_core That is true if you assume your history contains only working commands…
Sorry, do you not keep sql scratch files around?
If deving on the cli name and save to separate files your reusable queries…