File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
+ case $HISTCONTROL in
4
+ * ' auto' * )
5
+ : # Do nothing, already configured.
6
+ ;;
7
+ * )
8
+ # Append new history lines to history file
9
+ HISTCONTROL=" ${HISTCONTROL:- }${HISTCONTROL: +: } autosave"
10
+ ;;
11
+ esac
12
+ safe_append_preexec ' _bash-it-history-auto-load'
13
+ safe_append_prompt_command ' _bash-it-history-auto-save'
14
+
3
15
SCM_THEME_PROMPT_PREFIX=" ${SCM_THEME_PROMPT_SUFFIX:- } "
4
16
SCM_THEME_PROMPT_DIRTY=" ${bold_red?} ✗${normal?} "
5
17
SCM_THEME_PROMPT_CLEAN=" ${bold_green?} ✓${normal?} "
@@ -21,5 +33,4 @@ function prompt() {
21
33
PS1=" $( user_host_path_prompt) $( virtualenv_prompt) $( scm_prompt) $( mark_prompt) "
22
34
}
23
35
24
- safe_append_prompt_command ' _save-and-reload-history 1'
25
36
safe_append_prompt_command prompt
You can’t perform that action at this time.
0 commit comments