fork/home-manager

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

Aaron Pietscherzsh: fix custom syntax highlighting styles (#4236)55985674

master
513 B23 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.zsh = {
8      enable = true;
9      syntaxHighlighting = {
10        enable = true;
11        package = pkgs.hello;
12        styles.comment = "fg=#6c6c6c";
13      };
14    };
15
16    test.stubs.zsh = { };
17
18    nmt.script = ''
19      assertFileContains home-files/.zshrc "source ${pkgs.hello}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
20      assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_STYLES+=('comment' 'fg=#6c6c6c')"
21    '';
22  };
23}