From 15e4c191503a505698ccd1e230e71155c9c8edd0 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Fri, 28 Jun 2024 20:56:49 -0300 Subject: [PATCH] fix(home/fish): add awscli plug only if aws is present --- home/gabriel/features/cli/fish.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/home/gabriel/features/cli/fish.nix b/home/gabriel/features/cli/fish.nix index 615e996a..a5b4c8fb 100644 --- a/home/gabriel/features/cli/fish.nix +++ b/home/gabriel/features/cli/fish.nix @@ -20,7 +20,8 @@ in { programs.fish = { enable = true; - plugins = [ + plugins = + lib.optional hasAwsCli { name = "aws"; src = pkgs.applyPatches { @@ -32,9 +33,7 @@ in { }; patches = [ ( - builtins.toFile "fix-complete.diff" # diff - - '' + builtins.toFile "fix-complete.diff" /* diff */ '' diff --git a/completions/aws.fish b/completions/aws.fish index fc75188..1e8d931 100644 --- a/completions/aws.fish @@ -52,8 +51,7 @@ in { ) ]; }; - } - ]; + }; shellAbbrs = rec { jqless = "jq -C | less -r";