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.
This commit is contained in:
zimbatm 2020-11-30 18:40:13 +01:00
parent 9a63b3d3d6
commit 74f08a53a1
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -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