I do that sometimes, lazy as I can be
That’s when I realise I need more coffee.
Sorry, do you not keep sql scratch files around?
If deving on the cli name and save to separate files your reusable queries…
I definitely do this with terminal commands, because I’m not hunting for whatever the specific command line to animate my gif wallpaper is.
HOLY SHIT.
hahahaha, thank you. oh my gosh.
This is the most significant terminal hotkey I’ve learned in months.
♪┌|∵|┘♪
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”)
Or just !!
for the last command. Particularly helpful if you forgot to prefix it with sudo
you can run sudo !!
Fish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.