Skip to content

Commit

Permalink
awscli2: fix completion
Browse files Browse the repository at this point in the history
Generate index file for shell completion

Fix #103709

See-also: https://github.com/Homebrew/homebrew-core/pull/57547/files
  • Loading branch information
qrevel authored and peterhoeg committed Nov 23, 2020
1 parent a9f8357 commit 8582f5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/admin/awscli2/default.nix
Expand Up @@ -69,6 +69,9 @@ with py.pkgs; buildPythonApplication rec {
];

postInstall = ''
mkdir -p $out/${python3.sitePackages}/awscli/data
${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
Expand Down

0 comments on commit 8582f5d

Please sign in to comment.