From 74f08a53a1acd84407c6323797aa0612be7d23a5 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 30 Nov 2020 18:40:13 +0100 Subject: [PATCH] awscli2: fix bash completion name The bash completion name should map the binary name, so that it can be loaded by the bash-completion package automatically. --- pkgs/tools/admin/awscli2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 06e1487cfe94..0a5a5a92af60 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -73,7 +73,7 @@ with py.pkgs; buildPythonApplication rec { ${python3.interpreter} scripts/gen-ac-index --index-location $out/${python3.sitePackages}/awscli/data/ac.index mkdir -p $out/share/bash-completion/completions - echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli + echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/aws mkdir -p $out/share/zsh/site-functions mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions