add an env var that themes can save history immediately

This commit is contained in:
Levent Yalcin
2019-05-20 14:18:32 +01:00
parent 9b4a049571
commit 09a48d89cc
2 changed files with 4 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ function __powerline_prompt_command {
LEFT_PROMPT=""
[[ $HISTORY_AUTOSAVE -eq 1 ]] && history -a && history -c && history -r
## left prompt ##
for segment in $POWERLINE_PROMPT; do
local info="$(__powerline_${segment}_prompt)"