3 ms·
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
by cachvico 10d 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).
- CableNinja 10d agoCtrl+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.
- throwaway219450 10d agoI 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)
- FlyingSnake 10d agoI’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.
- jamiejquinn 10d agoI've relied on this so much that I copy my entire history between machines...
- RSHEPP 10d agoSelf hosted Atuin would do this for you too. Unless you don't want the added tooling/complexity
- jamiejquinn 9d agoAhh I only do this when reinstalling or moving to a new laptop but it's good to know about Atuin for the future!
- samdixon 10d agoctrl+r still great for targeting your make targets :)
- rootlocus 10d agoCtrl + R is great, you don't have to type out --dangerously-skip-permissions
- reddit_clone 10d agoI 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.
- BeetleB 10d agoYes, 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...
- KaiserPro 9d agoatuin 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