this post was submitted on 24 Sep 2025
1271 points (98.2% liked)

Programmer Humor

26570 readers
1826 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] ulterno@programming.dev 0 points 2 days ago (1 children)

It was quite a while before I realised that was possible.
Then not long after starting to use it, that I got fed up and just started opening up the history file and searching in it.

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

why not history | grep -i and the search term?

even if there are several, you can use ! and the command's line number to run it again

[–] ulterno@programming.dev 1 points 1 day ago

history is shell dependent.