Browse Source

Use rozcietrzewiacz's bash history solution

http://unix.stackexchange.com/a/18443/9365
Alois Mahdal 9 years ago
parent
commit
1ed40a0c91
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      dotfiles/bash/main.bashrc

+ 4
- 1
dotfiles/bash/main.bashrc View File

@@ -143,7 +143,10 @@ yum_hasbin() {
143 143
 ### BASH ###
144 144
 ### '''' ###
145 145
 
146
-HISTCONTROL=erasedups
146
+HISTCONTROL=ignoredups:erasedups
147
+shopt -s histappend
148
+PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND"
149
+
147 150
 HISTIGNORE="$HISTIGNORE:ls:ll:la:cd"
148 151
 HISTIGNORE="$HISTIGNORE:git dc:git st"
149 152
 #export HISTIGNORE="$HISTIGNORE:se *:sc *"