1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/programs/zsh/zsh-abbr.nix
Austin Horstman 196487c54f zsh: group plugins in a separate directory
Make it more scalable to prevent crowding the main folder.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-12 11:42:00 -05:00

23 lines
438 B
Nix

{
programs.zsh.zsh-abbr = {
enable = true;
abbreviations = {
ga = "git add";
};
};
test.stubs = {
zsh-abbr = {
outPath = null;
buildScript = ''
mkdir -p $out/share/zsh-abbr/runcoms
'';
};
};
nmt.script = ''
abbreviations=home-files/.config/zsh-abbr/user-abbreviations
assertFileExists $abbreviations
assertFileContains $abbreviations "abbr ga='git add'"
'';
}