this post was submitted on 24 Sep 2025
1291 points (98.0% liked)

Programmer Humor

26673 readers
1470 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) 50 comments
sorted by: hot top controversial new old
[–] T156@lemmy.world 3 points 1 week ago* (last edited 1 week ago) (2 children)

Being able to just enter a partial command, and hit [up] to jump to prior commands that started in the same way in zsh is a godsend.

[–] Entitle9294@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

If you ever have to go back to bash, it supports it as well. In my bashrc:

bind '"\C-p":history-search-backward'

That's ctrl-p, but I'm sure the up arrow is possible too.

[–] bss03@infosec.pub 1 points 1 week ago

I use vim keybindings and have ESC,/ to do a reverse command search.

[–] wewbull@feddit.uk 3 points 1 week 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)
[–] stealth_cookies@lemmy.world 3 points 1 week 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 1 week ago

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

[–] RustyNova@lemmy.world 3 points 1 week ago

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

[–] Laser@feddit.org 2 points 1 week ago

Linux Recall

I wish this wasn't so painfully true.

[–] Quexotic@infosec.pub 2 points 1 week ago

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

[–] Cevilia@lemmy.blahaj.zone 2 points 1 week 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...

load more comments
view more: ‹ prev next ›