Moving ignoredups:erasedups and shopt histappend to .bashrc because CentOS interactive shell doesn't source .bash_profile
David Blume

David Blume commited on 2019-09-11 13:04:45
Showing 2 changed files, with 4 additions and 3 deletions.

... ...
@@ -7,6 +7,3 @@ if [[ -n $ITERM_PROFILE && -z $SSH_CLIENT &&
7 7
     $(uname -s) == Darwin* && -f "${HOME}/tips.txt" ]]; then
8 8
     cat "${HOME}/tips.txt"
9 9
 fi
10
-# https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
11
-HISTCONTROL=ignoredups:erasedups
12
-shopt -s histappend
... ...
@@ -86,6 +86,10 @@ md() {
86 86
     fi
87 87
 }
88 88
 
89
+# https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
90
+HISTCONTROL=ignoredups:erasedups
91
+shopt -s histappend
92
+
89 93
 if [ -f $HOME/.localrc ]; then
90 94
     source $HOME/.localrc
91 95
 fi
92 96