mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: shell histignore defaults
This commit is contained in:
parent
e5a8540928
commit
a26b0fb337
1 changed files with 11 additions and 0 deletions
|
|
@ -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*"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue