2023-06-28 11:12:58 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.hello;
|
2023-11-19 19:37:32 +01:00
|
|
|
highlighters = [ "brackets" "pattern" "cursor" ];
|
2023-06-28 11:12:58 +02:00
|
|
|
styles.comment = "fg=#6c6c6c";
|
2024-02-08 15:17:24 +01:00
|
|
|
patterns."rm -rf *" = "fg=white,bold,bg=red";
|
2023-06-28 11:12:58 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs.zsh = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContains home-files/.zshrc "source ${pkgs.hello}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
2023-11-19 19:37:32 +01:00
|
|
|
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_HIGHLIGHTERS+=('brackets' 'pattern' 'cursor')"
|
2023-07-15 11:49:12 +02:00
|
|
|
assertFileContains home-files/.zshrc "ZSH_HIGHLIGHT_STYLES+=('comment' 'fg=#6c6c6c')"
|
2023-06-28 11:12:58 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|