2023-10-24 15:49:09 +02:00
|
|
|
{ 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 \
|
2024-10-23 14:07:07 +02:00
|
|
|
'source @granted@/bin/assume "$@"'
|
2023-10-24 15:49:09 +02:00
|
|
|
assertFileNotRegex \
|
|
|
|
home-files/.zshrc \
|
|
|
|
'unset GRANTED_ALIAS_CONFIGURED'
|
|
|
|
'';
|
|
|
|
}
|