I feel like there should be a cursed "long way round" for this that involves needlessly copying .bash_history to a "text file", running it through an asciibetical sorter (for "efficiency"), using sed to null out any command which doesn't match the search term...
this post was submitted on 24 Sep 2025
1270 points (98.2% liked)
Programmer Humor
26570 readers
1763 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
The one people see me doing that gets a "huh?" Is:
~$ !find
find -type f -name '*blah*' -print0 | xargs -0 gzip
~$
"Wait! What did you do?" "Oh. Do you not know about bang?"
load more comments
(4 replies)
zsh tab completion also looks through history wich is pretty nice.
This is why I like atuin, I can just press up and start typing part of the command and it will likely find it in my history.
You could already do that with just "Ctrl-R" but without atuin redrawing your screen.
Featherpad, copy, paste. Extra work, but you get a work log
Oh come on! I at least type the beginning so that it filters the history
I wish this wasn't so painfully true.
Linux Recall