Skip to content

Commit 11dc6ad

Browse files
committed
plugin/history-eternal
Unlimited history is only possible in _Bash_ version 4.3 and up
1 parent 6abd8f6 commit 11dc6ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/available/history-eternal.plugin.bash

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# shellcheck shell=bash
22
about-plugin 'eternal bash history'
33

4+
if [[ ${BASH_VERSINFO[0]} -lt 4 ]] || [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -lt 3 ]]; then
5+
_log_warning "Bash version 4.3 introduced the 'unlimited' history size capability."
6+
return 1
7+
fi
8+
49
# Modify history sizes before changing location to avoid unintentionally
510
# truncating the history file early.
611

0 commit comments

Comments
 (0)