Recently, I had to run a job on GitHub Actions in a container, ended up writing a TIL for that herearrow-up-right.
Unlimited Bash history? Well, why not? Sometimes, I find myself scratching my head trying to find a command that I had run a long time ago!
We need to set HISTSIZE & HISTFILESIZE variables of Bash to -1.
HISTSIZE
HISTFILESIZE
-1
To make it permanent for an user, we can set HISTSIZE & HISTFILESIZE variables in ~/.bashrc file.
~/.bashrc
Reference: bash - Linux Manpages Onlinearrow-up-right
Last updated 1 year ago