granted: support fish shell (#6549)

Due to fish being a non-POSIX shell, granted provides a separate wrapper
to be used by fish.
This commit is contained in:
Raine Godmaire 2025-03-07 14:29:16 -05:00 committed by GitHub
parent 04c915bcf1
commit 83f4629364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 2 deletions

View file

@ -1,4 +1,6 @@
{
granted-integration-enabled = ./integration-enabled.nix;
granted-integration-disabled = ./integration-disabled.nix;
granted-zsh-integration-enabled = ./zsh-integration-enabled.nix;
granted-zsh-integration-disabled = ./zsh-integration-disabled.nix;
granted-fish-integration-enabled = ./fish-integration-enabled.nix;
granted-fish-integration-disabled = ./fish-integration-disabled.nix;
}

View file

@ -0,0 +1,11 @@
{
programs = {
granted.enable = true;
granted.enableFishIntegration = false;
fish.enable = true;
};
nmt.script = ''
assertPathNotExists home-files/.config/fish/functions/assume.fish
'';
}

View file

@ -0,0 +1,10 @@
{
programs = {
granted.enable = true;
fish.enable = true;
};
nmt.script = ''
assertFileExists home-files/.config/fish/functions/assume.fish
'';
}