File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ function __powerline_prompt_command {
60
60
SEGMENTS_AT_LEFT=0
61
61
SEGMENTS_AT_RIGHT=0
62
62
LAST_SEGMENT_COLOR=" "
63
+ _save-and-reload-history " ${HISTORY_AUTOSAVE:- 0} "
63
64
64
65
# # left prompt ##
65
66
for segment in $POWERLINE_LEFT_PROMPT ; do
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ function __powerline_left_segment {
26
26
LEFT_PROMPT+=" $( set_color ${params[1]} -) ${pad_before_segment}${params[0]}${normal} "
27
27
LAST_SEGMENT_COLOR=${params[1]}
28
28
(( SEGMENTS_AT_LEFT += 1 ))
29
+ _save-and-reload-history " ${HISTORY_AUTOSAVE:- 0} "
29
30
}
30
31
31
32
function __powerline_left_last_segment_padding {
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ function __powerline_prompt_command() {
255
255
LEFT_PROMPT=" "
256
256
SEGMENTS_AT_LEFT=0
257
257
LAST_SEGMENT_COLOR=" "
258
+ save-and-reload-history " ${HISTORY_AUTOSAVE:- 0} "
258
259
259
260
if [[ -n " ${POWERLINE_PROMPT_DISTRO_LOGO} " ]]; then
260
261
LEFT_PROMPT+=" $( set_color " ${PROMPT_DISTRO_LOGO_COLOR} " " ${PROMPT_DISTRO_LOGO_COLORBG} " ) ${PROMPT_DISTRO_LOGO} $( set_color - -) "
You can’t perform that action at this time.
0 commit comments