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

founded 2 years ago
MODERATORS
 
(page 3) 40 comments
sorted by: hot top controversial new old
[–] Cevilia@lemmy.blahaj.zone 2 points 2 days ago

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

[–] wewbull@feddit.uk 3 points 2 days ago (4 children)

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)
[–] nullPointer@programming.dev 4 points 2 days ago

zsh tab completion also looks through history wich is pretty nice.

[–] stealth_cookies@lemmy.world 3 points 2 days ago (1 children)

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.

[–] merc@sh.itjust.works 2 points 2 days ago

You could already do that with just "Ctrl-R" but without atuin redrawing your screen.

[–] Quexotic@infosec.pub 2 points 2 days ago

Featherpad, copy, paste. Extra work, but you get a work log

[–] RustyNova@lemmy.world 3 points 2 days ago

Oh come on! I at least type the beginning so that it filters the history

I wish this wasn't so painfully true.

[–] Laser@feddit.org 2 points 2 days ago

Linux Recall

load more comments
view more: ‹ prev next ›