themes: Make PROMPT_COMMAND usage consistent for reloading OMB

This commit is contained in:
Koichi Murase
2022-01-11 12:40:43 +09:00
parent c3bcc5c6d2
commit 7f420263b2
65 changed files with 184 additions and 141 deletions

View File

@@ -2,7 +2,7 @@
source "$OSH/themes/doubletime/doubletime.theme.sh"
function prompt_setter() {
function _omb_theme_PROMPT_COMMAND() {
# Save history
history -a
history -c
@@ -15,4 +15,4 @@ $(doubletime_scm_prompt)$reset_color $ "
PS4='+ '
}
_omb_util_add_prompt_command prompt_setter
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND