I’m not a programmer but I do this on the Linux command line all the time to find a command I used days or weeks ago. Or I’ll spend 20 minutes grepping history instead. All to avoid spending 5 minutes reading the manpage so I can remember which flags and arguments I used.
And then you realise your dumb endless ls-ing has pushed the command off the history list
This is too accurate!
Can you change the history list size?
Can you configure it to ignore ls and cd …
May i introduce u to atuin
I think you mean Crtl+R in bash
What does this sometimes appear not to work for me even though the command is clearly in the history?
Nah thanks, up arrow hasnt failed me yet
I don’t believe in A’tuin. The world is obviously carried on the back of a badger.
But the turtle moves.
And the honey badger mauls. My planet could beat up your planet in a fight.
Have you used fish? The built-in fuzzy matching works pretty well for me. Wondering if there’s any reason to add atuin in. Sync seems like a negative to me more than a positive.
I use fish with atuin but without sync. It is nice because I can search commands for a given workspace. For example the commands within a given git repository.
Yeah they are compatible. Sync can be disabled entirely or self hosted.
*tap*
no
*tap*
no
*tap*
noOkay, NOW it’s getting personal!
me typing “sudo !!” instead of rewriting the shell command undoes this.
Who is writing SQL in the terminal?
MariaDB CLI about once in a blue moon when I have to clear some table that’s gotten borked.
Was thinking the same thing… now, searching through all my SQL scripts for the past year to find the same logic I want to replicate in another script, well that’s different.
I save “template” SQL queries in a special directory so that I don’t have to google how to do specific things. It’s basically my own personal “examples” folder.
Me in the bash terminal