mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
Make it more scalable to prevent crowding the main folder. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
23 lines
438 B
Nix
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'"
|
|
'';
|
|
}
|