chore: shell histignore defaults

This commit is contained in:
arcnmx 2024-02-13 16:57:19 -08:00
parent e5a8540928
commit a26b0fb337

View file

@ -4,5 +4,16 @@
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
interactiveShellInit = ''
setopt autocd
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
HISTORY_IGNORE="(*^C*|:*|/*|~*|.*)"
'';
};
programs.bash = {
interactiveShellInit = ''
HISTIGNORE="[bf]g:exit: *:*^C*"
'';
}; };
} }