logoalt Hacker News

cachvicotoday at 4:45 PM6 repliesview on HN

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).


Replies

BeetleBtoday at 6:40 PM

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...

reddit_clonetoday at 6:20 PM

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.

rootlocustoday at 5:56 PM

Ctrl + R is great, you don't have to type out --dangerously-skip-permissions

CableNinjatoday at 4:53 PM

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.

show 1 reply
FlyingSnaketoday at 4:57 PM

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.

show 1 reply
samdixontoday at 5:22 PM

ctrl+r still great for targeting your make targets :)