themes: use _save-and-reload-history()
First pass to use _Bash It_'s automatic history management.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
SCM_THEME_PROMPT_PREFIX=${SCM_THEME_PROMPT_SUFFIX}
|
||||
SCM_THEME_PROMPT_DIRTY="${bold_red} ✗${normal}"
|
||||
SCM_THEME_PROMPT_CLEAN="${bold_green} ✓${normal}"
|
||||
@@ -19,11 +21,5 @@ prompt() {
|
||||
PS1="$(user_host_path_prompt)$(virtualenv_prompt)$(scm_prompt) $(mark_prompt) "
|
||||
}
|
||||
|
||||
share_history() {
|
||||
history -a
|
||||
history -c
|
||||
history -r
|
||||
}
|
||||
|
||||
safe_append_prompt_command share_history
|
||||
safe_append_prompt_command '_save-and-reload-history 1'
|
||||
safe_append_prompt_command prompt
|
||||
|
||||
Reference in New Issue
Block a user