fork/home-manager

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

Matthew Tooheypistol: refactorb7eb400d

master
384 B18 linesraw
1{
2  programs.pistol = {
3    enable = true;
4    # contains both fpath and mime
5    associations = [{
6      fpath = ".*.md$";
7      mime = "application/json";
8      command = "bat %pistol-filename%";
9    }];
10  };
11
12  test.stubs.pistol = { };
13
14  test.asserts.assertions.expected = [''
15    Each entry in programs.pistol.associations must contain exactly one
16    of fpath or mime.
17  ''];
18}