Add some commands to exclude from history. Note that the '&' is redundant with the ignoredups directive above.
David Blume

David Blume commited on 2019-09-12 15:50:34
Showing 1 changed files, with 2 additions and 1 deletions.

... ...
@@ -8,7 +8,7 @@ export PROMPT_DIRTRIM=4
8 8
 if [[ -n $SSH_CLIENT ]]; then
9 9
     export PS1='$(if [ $? -eq 0 ]; then echo -e "\[\e[32m\]\xe2\x9c\x93"; else echo -e "\[\e[31m\]\xe2\x9c\x97"; fi) \[\e[38;5;242m\]\h:\w$\[\e[0m\] '
10 10
 else
11
-    export PS1='$(if [ $? -eq 0 ]; then echo -e "\[\e[32m\]\xe2\x9c\x93"; else echo -e "\[\e[31m\]\xe2\x9c\x97"; fi) \[\e[38;5;242m\]\w$\[\e[0m\] '
11
+    export PS1='$(if [ $? -eq 0 ]; then echo -e "\[\e[32m\]\xe2\x9c\x93"; else echo -e "\[\e[31m\]\xe2\x9c\x97"; fi) \[\e[38;5;248m\]\w$\[\e[0m\] '
12 12
 fi
13 13
 
14 14
 set -o vi
... ...
@@ -88,6 +88,7 @@ md() {
88 88
 
89 89
 # https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
90 90
 HISTCONTROL=ignoredups:erasedups
91
+HISTIGNORE="&:ls:[bf]g:exit:pwd:clear"
91 92
 shopt -s histappend
92 93
 
93 94
 if [ -f $HOME/.localrc ]; then
94 95