News for hackers. Stuff that matters.
Re:Ask HN: Programs that saved you 100 hours? (2022 edition) by 5e92cb50239222b on Tuesday December 20, 2022 @02:08PM (#34070765)
Add fzf to get fuzzy search for your history. I reuse long complicated commands all the time by pressing Ctrl+R and then typing the first letters of a few words I remember using.

https://github.com/junegunn/fzf

It's also useful to remove duplicate commands and store infinite history. Add this to ~/.bashrc:

  export HISTFILESIZE=
  export HISTSIZE=
  export HISTCONTROL=ignoredups
Re:Ask HN: Programs that saved you 100 hours? (2022 edition) by dllthomas on Tuesday December 20, 2022 @02:32PM (#34071202)
Changing HISTFILE by context has been a huge win, keeping commands from generic system administration or different projects from getting in the way as I search back through my history to do a thing again.