themes: use _save-and-reload-history()

First pass to use _Bash It_'s automatic history management.
This commit is contained in:
John D Pell
2021-09-10 13:36:10 -07:00
parent f0690c09fb
commit ffe15ebfe0
8 changed files with 17 additions and 35 deletions

View File

@@ -1,12 +1,10 @@
#!/usr/bin/env bash
# shellcheck shell=bash
source "$BASH_IT/themes/doubletime/doubletime.theme.bash"
function prompt_setter() {
# Save history
history -a
history -c
history -r
_save-and-reload-history 1
PS1="
$(clock_prompt) $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt)
\w