Skip to content

Commit

Permalink
plugin/history-eternal
Browse files Browse the repository at this point in the history
Unlimited history is only possible in _Bash_ version 4.3 and up
  • Loading branch information
gaelicWizard committed Jan 23, 2022
1 parent 4b86b3f commit 221a807
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/available/history-eternal.plugin.bash
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 221a807

Please sign in to comment.