diff --git a/lib/helpers.bash b/lib/helpers.bash index 02ec94a595..2930a5d251 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -954,6 +954,12 @@ function safe_append_preexec { fi } +function _save-and-reload-history() +{ + [[ ${autosave:-${HISTORY_AUTOSAVE:-0}} -eq 1 ]] && local HISTCONTROL="${HISTCONTROL:-}${HISTCONTROL:+:}autoshare" + _bash_it_history_auto_save && _bash_it_history_auto_load +} + function _bash_it_history_auto_save() { case $HISTCONTROL in