We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a3f7d4 commit d698955Copy full SHA for d698955
themes/codeword/codeword.theme.bash
@@ -1,5 +1,17 @@
1
# shellcheck shell=bash
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
+
15
SCM_THEME_PROMPT_PREFIX="${SCM_THEME_PROMPT_SUFFIX:-}"
16
SCM_THEME_PROMPT_DIRTY="${bold_red?} ✗${normal?}"
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
0 commit comments