4 ms·
> 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
by rascul 5y 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-Variables.html#index-HISTSIZE https://www.gnu.org/software/bash/manual/html_node/Bash-Vari...
- 1vuio0pswjnm7 5y agoBash 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
- 1vuio0pswjnm7 5y agoWhen I peruse bash-5.1/CHANGES it makes me uncomfortable. It is far too long, for one.