mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/history: Remove the limit of the history sizes
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user