Comment by cachvico
20 hours ago
I find myself using ctrl-r less and less as I make sure that anything of value that I work out goes into a Makefile or the app tooling, for me this is the basis of the dev-ops approach to work (make sure everything is scripted, not worked out on the fly).
atuin for me has replaced ctrl-r.
well not specificlly but its bound to it. Having durable history stored in an SQL database (with secrets filtering and option syncing) you can search global history, or local. (as in if you have two terminals open, you can just search the commands you've typed in one terminal for that session, that session plus history or that session plus what you've just typed in any other session. )
Its awesome
Ctrl + R is great, you don't have to type out --dangerously-skip-permissions
Ctrl+r is great, sometimes. History saving sucks which can make using it difficult, but i usually use it out of laziness than trying to recall a command, especially with ssh or repeated iterations requiring flipping between two settings/states. Its hard to rely on it for other things, but its still super useful.
I use history | grep quite a lot, because of the non-fuzziness with default ctrl+r. If I know exactly what the substring is, then that's great, but sometimes I also want to see the sequence around the command too (e.g. two step processes like eval ssh agent + ssh add key)
I do that too. I am trying to use Mise. (Getting interested in Maak. Haven't done anything with it yet. My Scheme is pretty rusty)
Still, Zsh history with fzf fuzzy searching is fantastic. I have years of history I can recall commands with a few keystrokes.
Truly a second-brain.
Yes, but how do I know what should go in the justfile? When I've realized I've used Ctrl-r for the same thing a few times :-)
And as another commenter said, you often forget the target, and use Ctrl-r to find it. Although just does support fzf...
ctrl+r still great for targeting your make targets :)
I’m lazy so With fish, I just type a part of the command and press up few times to get to where I want. There’s also fish-fzf.
I've relied on this so much that I copy my entire history between machines...
Self hosted Atuin would do this for you too. Unless you don't want the added tooling/complexity
1 reply →