Add history flushes on each command to the powerline themes.

This commit is contained in:
Ira Abramov
2021-05-19 10:54:28 +03:00
parent 8c47706139
commit 9f4c71d40f
3 changed files with 3 additions and 0 deletions

View File

@@ -255,6 +255,7 @@ function __powerline_prompt_command() {
LEFT_PROMPT=""
SEGMENTS_AT_LEFT=0
LAST_SEGMENT_COLOR=""
save-and-reload-history "${HISTORY_AUTOSAVE:-0}"
if [[ -n "${POWERLINE_PROMPT_DISTRO_LOGO}" ]]; then
LEFT_PROMPT+="$(set_color "${PROMPT_DISTRO_LOGO_COLOR}" "${PROMPT_DISTRO_LOGO_COLORBG}")${PROMPT_DISTRO_LOGO}$(set_color - -)"