We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
autoshare
$HISTCONTROL
1 parent 2be39ee commit 672b271Copy full SHA for 672b271
plugins/available/history.plugin.bash
@@ -5,8 +5,13 @@ about-plugin 'improve history handling with sane defaults'
5
# append to bash_history on exit.
6
shopt -s histappend
7
8
-# erase duplicates; alternative option: HISTCONTROL=ignoredups
9
-: "${HISTCONTROL:=ignorespace:erasedups}"
+# 'ignorespace': don't save command lines which begin with a space to history
+# 'erasedups' (alternative 'ignoredups'): don't save duplicates to history
10
+# 'autoshare': automatically share history between multiple running shells
11
+: "${HISTCONTROL:=ignorespace:erasedups:autoshare}"
12
+
13
+safe_append_preexec '_bash_it_history_auto_save'
14
+safe_append_prompt_command '_bash_it_history_auto_load'
15
16
# resize history to 100x the default (500)
17
: "${HISTSIZE:=50000}"
0 commit comments