mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 07:39:46 +01:00
18 lines
324 B
Nix
18 lines
324 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
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'"
|
||
|
'';
|
||
|
}
|