themes: use _save-and-reload-history()
First pass to use _Bash It_'s automatic history management.
This commit is contained in:
6
themes/doubletime/doubletime.theme.bash
Normal file → Executable file
6
themes/doubletime/doubletime.theme.bash
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
SCM_THEME_PROMPT_DIRTY=''
|
||||
SCM_THEME_PROMPT_CLEAN=''
|
||||
@@ -30,9 +30,7 @@ fi
|
||||
|
||||
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)$(ruby_version_prompt)\w
|
||||
$(scm_prompt)$reset_color $ "
|
||||
|
||||
Reference in New Issue
Block a user