themes: use `_bash_it_history_auto_save()`

First pass to use _Bash It_'s automatic history management.
pull/1951/head
John D Pell 2021-09-10 13:38:35 -07:00 committed by John D Pell
parent 5d5858058e
commit d9b29b3409
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ function _prompt {
_exit-code exit_code
_git-uptream-remote-logo
history -a
HISTCONTROL="${HISTCONTROL:-}:autosave" _bash_it_history_auto_save
# Detect root shell
if [ "$(whoami)" = root ]; then

2
themes/font/font.theme.bash 100644 → 100755
View File

@ -56,7 +56,7 @@ function prompt_command() {
fi
# Append new history lines to history file
history -a
HISTCONTROL="${HISTCONTROL:-}:autosave" _bash_it_history_auto_save
PS1="$(clock_prompt)${virtualenv}$(user_host_prompt)${bold_cyan}\W $(scm_prompt_char_info)${ret_status}${normal}"
}