azure-cli: fix shell completion

This commit is contained in:
Benjamin Staffin 2021-04-27 13:43:07 -04:00 committed by Jonathan Ringer
parent e4562d62d9
commit 2f824a4e20

View file

@ -152,9 +152,9 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage {
argcomplete
];
# TODO: make shell completion actually work
# uses argcomplete, so completion needs PYTHONPATH to work
postInstall = ''
substituteInPlace az.completion.sh \
--replace register-python-argcomplete ${py.pkgs.argcomplete}/bin/register-python-argcomplete
installShellCompletion --bash --name az.bash az.completion.sh
installShellCompletion --zsh --name _az az.completion.sh