Add history flushes on each command to the powerline themes.
parent
8c47706139
commit
9f4c71d40f
|
|
@ -60,6 +60,7 @@ function __powerline_prompt_command {
|
|||
SEGMENTS_AT_LEFT=0
|
||||
SEGMENTS_AT_RIGHT=0
|
||||
LAST_SEGMENT_COLOR=""
|
||||
_save-and-reload-history "${HISTORY_AUTOSAVE:-0}"
|
||||
|
||||
## left prompt ##
|
||||
for segment in $POWERLINE_LEFT_PROMPT; do
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ function __powerline_left_segment {
|
|||
LEFT_PROMPT+="$(set_color ${params[1]} -)${pad_before_segment}${params[0]}${normal}"
|
||||
LAST_SEGMENT_COLOR=${params[1]}
|
||||
(( SEGMENTS_AT_LEFT += 1 ))
|
||||
_save-and-reload-history "${HISTORY_AUTOSAVE:-0}"
|
||||
}
|
||||
|
||||
function __powerline_left_last_segment_padding {
|
||||
|
|
|
|||
|
|
@ -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 - -)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue