This PR is based on #96 and alsö accounts for if the user still sets $HISTCONTROL incompatibly when actually running hooks. If the user insists, then gracefully fall back to $BASH_COMMAND.
This PR keeps the existing behavior of automatically altering the user's configuration, but thanks to @ilya-bobyr still maintains the user's expected behavior and thanks to @cornfeedhobo does not require Bash 5.0.
This PR is based on #96 and alsö accounts for if the user still sets
$HISTCONTROL
incompatibly when actually running hooks. If the user insists, then gracefully fall back to$BASH_COMMAND
.This PR keeps the existing behavior of automatically altering the user's configuration, but thanks to @ilya-bobyr still maintains the user's expected behavior and thanks to @cornfeedhobo does not require Bash 5.0.
This resolves #96 and closes #115.