1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00
home-manager/tests/modules/programs/zsh/history-ignore-pattern.nix

21 lines
400 B
Nix
Raw Normal View History

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