home-manager/tests/modules/programs/zsh/history-ignore-pattern.nix
Thiago Kenji Okada fcc4259cdb
treewide: stub tests (#6275)
* ranger: stub tests

* alacritty: stub tests

* broot: stub tests

* zsh: stub tests

* vim-vint: stub tests
2025-01-08 16:24:04 +01:00

17 lines
363 B
Nix

{ ... }:
{
imports = [
./zsh-stubs.nix
({ ... }: { config.programs.zsh.history.ignorePatterns = [ "echo *" ]; })
({ ... }: { config.programs.zsh.history.ignorePatterns = [ "rm *" ]; })
];
config = {
programs.zsh.enable = true;
nmt.script = ''
assertFileContains home-files/.zshrc "HISTORY_IGNORE='(echo *|rm *)'"
'';
};
}