azure-cli: fix shell completion
This commit is contained in:
parent
e4562d62d9
commit
2f824a4e20
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue