diff --git a/plugins/available/history-eternal.plugin.bash b/plugins/available/history-eternal.plugin.bash index 178332142a..00e6fe5e69 100644 --- a/plugins/available/history-eternal.plugin.bash +++ b/plugins/available/history-eternal.plugin.bash @@ -1,6 +1,10 @@ # shellcheck shell=bash about-plugin 'eternal bash history' +if [[ ${BASH_VERSINFO[0]} -lt 4 ]] || [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -lt 3 ]]; then + return 1 # Bash version 4.3 introduced the "unlimited" history size capability. +fi + # Modify history sizes before changing location to avoid unintentionally # truncating the history file early.