3 ms·
The last time I attempted this, it caused going back through the history in a separate shell to show entries from all other existing shells in order. Since I us
by jmholla 3y ago
The last time I attempted this, it caused going back through the history in a separate shell to show entries from all other existing shells in order. Since I use each shell as separate workspaces, the clashing was unbearable. Now, I do:
# Undocumented feature which sets the size to "unlimited".
# http://stackoverflow.com/questions/9457233/unlimited-bash-history
export HISTFILESIZE=
export HISTSIZE=
and just depend on exiting my shells to store data long term.
- oxygen_crisis 3y agoIf you're using bash 4.3 (released 2014) or higher you could convert this from using an "undocumented feature" to use the documented feature that does the same... > "Numeric values less than zero result in every command being saved on the history list (there is no limit)." export HISTFILESIZE=-1 export HISTSIZE=-1