this post was submitted on 10 Nov 2025
146 points (99.3% liked)
Linux
10098 readers
647 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have this in my config:
I believe I originally got this implementation from the GitHub issues. The key is that abbreviations can also call functions, which can in turn index into the
historylist. We also need to specify that we want the expansion even if we're in an argument to another command, such as insudo !!.