mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

380K
active users

nixCraft 🐧

Scrolling through my command history with the up/down arrow keys to find that one Bash command be like .... cyberciti.biz/faq/linux-unix-s

@foo @nixCraft Oh my God... TIL about hstr. Thank you. Most of my bash history is filled with "history | grep". No more!

@edinburgh_man @foo @nixCraft One minor tip: prefix every 'history | grep' with a space so that it won't be saved to history and clutter your searches for the thing. (Every command starting with a space is left out of history.)

@ednl @foo @nixCraft 😮 I've been using BASH for over 30 years. Maybe I need to do some reading up on it.

@nixCraft “I’m already further up than typing the command manually 5 times, so I can’t stop now”

@nixCraft ...only to realize, after 5mins scrolling, that I ran it in the container...

@nixCraft

history | grep string esp for seldom used commands.

can be helpful,

@nixCraft atuin is exactly what you want here. It can even search for commands on other nodes or in containers if you set it up.

@nixCraft Ctrl-R FTW have the computer search

@nixCraft The day I learned about Ctrl+R was the day that changed my life forever :blobcataww:

@nixCraft I make an embarrassing amount of use of
history |grep "command"
to find the params I used last time...

@elysegrasso @nixCraft Give "fish" a try. You'll never go back once you try it.

@nixCraft
50 clicks is my limit before I Ctrl+R and search

@nixCraft fzf very useful for history, give it a try.