Re:When I Stopped Trying to Self-Optimize, I Got Better
by heavenlyblue on Tuesday September 26, 2023 @07:04AM
(#37657501)
history | grep in regular bash
Re:When I Stopped Trying to Self-Optimize, I Got Better
by pferde on Tuesday September 26, 2023 @07:24AM
(#37657662)
Or ^Rpartofcommand to do an interactive history search.
This is a priceless feature, which, as I keep finding out, too many people do not know about, and they waste time faffing about pressing up and down, trying to find that one command their entered ten minutes ago. :)
I press a space before commands with sensitive information so they don’t stay in my history or throwaway commands that I’m 99% sure I won’t use again.
Complicated ones I create a function for it, but I no longer carry aliases on my shell configuration, and I prefer the legibility of my commands/history.