News for hackers. Stuff that matters.
Re:When I Stopped Trying to Self-Optimize, I Got Better by anbotero on Tuesday September 26, 2023 @01:53AM (#37654990)
I used to do this, but with fish shell unless I have very similar commands, I just type part of the whole line to something I (personally) associate it with and that’s it, that’s the command.

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.

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