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 26, 2022
1 parent 6abd8f6 commit 11dc6ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/available/history-eternal.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# 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
_log_warning "Bash version 4.3 introduced the 'unlimited' history size capability."
return 1
fi

# Modify history sizes before changing location to avoid unintentionally
# truncating the history file early.

Expand Down

0 comments on commit 11dc6ad

Please sign in to comment.