Hacker News new | ask | show | jobs
by rascul 1513 days ago
> Bash saves them but truncates them to 500 entries

That behavior can be modified with the HISTSIZE environment variable.

> The maximum number of commands to remember on the history list. If the value is 0, commands are not saved in the history list. Numeric values less than zero result in every command being saved on the history list (there is no limit). The shell sets the default value to 500 after reading any startup files.

https://www.gnu.org/software/bash/manual/html_node/Bash-Vari...

1 comments

Bash is too complicated. Too many options. I am not smart enough to use it. I prefer the Almquist shell. No shellshock.

   echo "export PROMPT_COMMAND='history -a;history -r;export HISTFILE=-1;export HISTFILESIZE=-1;shopt -s histappend'" > .bashrc

   cp .bashrc /etc/profile
When I peruse bash-5.1/CHANGES it makes me uncomfortable. It is far too long, for one.