awscli: Make bash and zsh completions work

This commit is contained in:
Benjamin Staffin 2015-07-28 01:05:13 -07:00
parent fba4a95068
commit 8de7d148c8

View File

@ -21,6 +21,14 @@ pythonPackages.buildPythonPackage rec {
groff groff
]; ];
postInstall = ''
mkdir -p $out/etc/bash_completion.d
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
mkdir -p $out/share/zsh/site-functions
mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
rm $out/bin/aws.cmd
'';
meta = { meta = {
homepage = https://aws.amazon.com/cli/; homepage = https://aws.amazon.com/cli/;
description = "Unified tool to manage your AWS services"; description = "Unified tool to manage your AWS services";