diff options
Diffstat (limited to 'bash_include')
-rw-r--r-- | bash_include | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bash_include b/bash_include index e4609c4..252bb00 100644 --- a/bash_include +++ b/bash_include @@ -119,8 +119,13 @@ nocolorprompting="${nocolorprompting}"'\$ ' colorsecondprompting="\[\e[36m\]-->\[\e[m\] " nocolorsecondprompting="--> " -HISTSIZE=2147483647 -HISTFILESIZE=2147483647 +if [ "${BASH_VERSINFO[0]}" -gt "5" ] || [ "${BASH_VERSINFO[0]}" -eq "4" -a "${BASH_VERSINFO[1]}" -eq "3" ]; then + HISTSIZE=-1 + HISTFILESIZE=-1 +else + HISTSIZE=2147483647 + HISTFILESIZE=2147483647 +fi HISTCONTROL=ignoredups:ignorespace HISTTIMEFORMAT="%F %T " historycountfile="$HOME/.bash_history.count" |