From 7fd6dc2b94f10b0229f5e6b8fd5ed49636f895e1 Mon Sep 17 00:00:00 2001 From: Raine Godmaire Date: Tue, 11 Mar 2025 09:28:43 -0400 Subject: [PATCH] granted: fix fish shell integration (#6602) Without `$argv` the function will not pass any flags or arguments to the `assume.fish` script. These are necessary to use assume to access the AWS console or use IAM role chaining. --- modules/programs/granted.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/granted.nix b/modules/programs/granted.nix index b20312069..802cffea1 100644 --- a/modules/programs/granted.nix +++ b/modules/programs/granted.nix @@ -33,7 +33,7 @@ in { programs.fish.functions.assume = mkIf cfg.enableFishIntegration '' set -x GRANTED_ALIAS_CONFIGURED "true" - source ${package}/share/assume.fish + source ${package}/share/assume.fish $argv set -e GRANTED_ALIAS_CONFIGURED ''; };