fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: add option `test.stubs`cb09a968

master
400 B20 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  imports = [
7    ({ ... }: { config.programs.zsh.history.ignorePatterns = [ "echo *" ]; })
8    ({ ... }: { config.programs.zsh.history.ignorePatterns = [ "rm *" ]; })
9  ];
10
11  config = {
12    programs.zsh.enable = true;
13
14    test.stubs.zsh = { };
15
16    nmt.script = ''
17      assertFileContains home-files/.zshrc "HISTORY_IGNORE='(echo *|rm *)'"
18    '';
19  };
20}