home-manager/tests/modules/programs/zsh/zsh-abbr.nix
Thiago Kenji Okada fcc4259cdb
treewide: stub tests (#6275)
* ranger: stub tests

* alacritty: stub tests

* broot: stub tests

* zsh: stub tests

* vim-vint: stub tests
2025-01-08 16:24:04 +01:00

17 lines
326 B
Nix

{ ... }:
{
imports = [ ./zsh-stubs.nix ];
programs.zsh.zsh-abbr = {
enable = true;
abbreviations = { ga = "git add"; };
};
nmt.script = ''
abbreviations=home-files/.config/zsh-abbr/user-abbreviations
assertFileExists $abbreviations
assertFileContains $abbreviations "abbr ga='git add'"
'';
}