mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 08:49:44 +01:00
28 lines
591 B
Nix
28 lines
591 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
programs = {
|
||
|
granted.enable = true;
|
||
|
granted.enableZshIntegration = false;
|
||
|
zsh.enable = true;
|
||
|
};
|
||
|
|
||
|
test.stubs.granted = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.zshrc
|
||
|
assertFileNotRegex \
|
||
|
home-files/.zshrc \
|
||
|
'function assume()'
|
||
|
assertFileNotRegex \
|
||
|
home-files/.zshrc \
|
||
|
'export GRANTED_ALIAS_CONFIGURED="true"'
|
||
|
assertFileNotRegex \
|
||
|
home-files/.zshrc \
|
||
|
'source @granted@/bin/.assume-wrapped "$@"'
|
||
|
assertFileNotRegex \
|
||
|
home-files/.zshrc \
|
||
|
'unset GRANTED_ALIAS_CONFIGURED'
|
||
|
'';
|
||
|
}
|