Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion plugins/available/history-eternal.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ 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
_log_warning "Disabling history-eternal plugin (current version: $BASH_VERSION)"
_disable-plugin history-eternal
return 0
fi

# Modify history sizes before changing location to avoid unintentionally
Expand Down
7 changes: 7 additions & 0 deletions plugins/available/pack.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# shellcheck shell=bash
# bash completion for pack -*- shell-script -*-

# Requires bash 3.3+ for associative arrays
# Skip loading if bash version is too old
if [[ -n "${BASH_VERSINFO[0]}" ]] && [[ "${BASH_VERSINFO[0]}" -eq 3 ]] && [[ "${BASH_VERSINFO[1]}" -lt 3 ]]; then
_disable-plugin pack
return 0
fi

cite about-plugin
about-plugin 'CNB pack cli aliases'

Expand Down
5 changes: 3 additions & 2 deletions plugins/available/percol.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ _command_exists percol || return

if [[ ${BASH_VERSINFO[0]} -lt 4 ]]; then
_log_warning "You have to upgrade Bash to Bash v4.x to use the 'percol' plugin."
_log_warning "Your current Bash version is $BASH_VERSION."
return
_log_warning "Disabling percol plugin (current version: $BASH_VERSION)"
_disable-plugin percol
return 0
fi

function _replace_by_history() {
Expand Down
Loading