logoalt Hacker News

voidUpdatetoday at 8:49 AM1 replyview on HN

With ctrl+r, if you press it twice, it will autofill the search with whatever you last searched for. pressing it more will go back through the history. Been using that a lot recently when doing docker stuff. ctrl+r, type the container name, keep going until I get the compose build command. ctrl+r, ctrl+r, repeat until the log command. Then I can just mash ctrl+r to get the build and log commands. Ctrl+r is your friend. ctrl+r


Replies

arcanemachinertoday at 9:21 AM

Make sure to add fzf + shell integration for maximum Ctrl+r goodness.