lib/history: Remove the limit of the history sizes

This commit is contained in:
Koichi Murase
2022-06-23 11:03:11 +09:00
parent 92f303125c
commit 1272a39800

View File

@@ -16,10 +16,10 @@ shopt -s histappend
# Save multi-line commands as one command # Save multi-line commands as one command
shopt -s cmdhist shopt -s cmdhist
# use readline on history # Re-edit the command line for failing history expansions
shopt -s histreedit shopt -s histreedit
# load history line onto readline buffer for editing # Re-edit the result of history expansions
shopt -s histverify shopt -s histverify
# save history with newlines instead of ; where possible # save history with newlines instead of ; where possible
@@ -28,9 +28,10 @@ shopt -s lithist
# Record each line as it gets issued # Record each line as it gets issued
_omb_util_add_prompt_command 'history -a' _omb_util_add_prompt_command 'history -a'
# Huge history. Doesn't appear to slow things down, so why not? # Unlimited history size. Doesn't appear to slow things down, so why not?
HISTSIZE=500000 # Export these variables to apply them also to the child shell sessions.
HISTFILESIZE=100000 export HISTSIZE=
export HISTFILESIZE=
# Avoid duplicate entries # Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth" HISTCONTROL="erasedups:ignoreboth"