Преглед на файлове

Use rozcietrzewiacz's bash history solution

http://unix.stackexchange.com/a/18443/9365
Alois Mahdal преди 9 години
родител
ревизия
1ed40a0c91
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4
    1
      dotfiles/bash/main.bashrc

+ 4
- 1
dotfiles/bash/main.bashrc Целия файл

@@ -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 *"