Ctrl-r was right there.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
Or sometimes history
if I can’t remember at all.
Oh my bad, two other people said that too I was just excited
CTRL+R
It's either this or history | grep 'some-command'
.
history
!982
You forgot a couple down arrows for when you overshoot.
ls
If you're in this picture try using fzf and backwards search, much more effective, hell even without fzf.
Introducing: fish
And then you just need to remember the first letters of the previously typed command
Yup, I started using fish a while back and autocomplete is what kept me on it. The best part is that it's contextual based on the folder you're in.
Look up history-search-backward
in your favorite bash/readline manual.
The command you want is in the buffered history of a still running terminal that's doing something you don't want to close 💀
Don't call me out like that lol. Also Atuin is pretty cool for this as you are showed a list of the commands used when you press ⬆️.
🐟🐟🐟
🚫
Some of you haven't read the bash manual and it shows.
Blow your mind to know about bang patterns. You've used !! but do you know about !$?
If you haven't, try McFly - is a much better backwards / history search in the shell.