home-manager/tests/modules/programs/zsh/zsh-abbr.nix

18 lines
324 B
Nix
Raw Normal View History

2023-10-03 00:34:46 +00:00
{ ... }:
{
programs.zsh.zsh-abbr = {
enable = true;
abbreviations = { ga = "git add"; };
};
test.stubs.zsh-abbr = { };
nmt.script = ''
abbreviations=home-files/.config/zsh-abbr/user-abbreviations
assertFileExists $abbreviations
assertFileContains $abbreviations "abbr 'ga'='git add'"
'';
}