summary refs log tree commit diff
path: root/pkgs/tools/admin/azure-cli
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2021-04-27 13:43:07 -0400
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-04-29 11:36:11 -0700
commit2f824a4e20ffe67a613e4e24f81c453e7a4d2580 (patch)
tree6e02d749d6fce199dfd3d7bf754de3b840c3d00f /pkgs/tools/admin/azure-cli
parente4562d62d9e94eb3eb34a6b2eeed97af5922ef39 (diff)
downloadnixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar.gz
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar.bz2
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar.lz
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar.xz
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.tar.zst
nixpkgs-2f824a4e20ffe67a613e4e24f81c453e7a4d2580.zip
azure-cli: fix shell completion
Diffstat (limited to 'pkgs/tools/admin/azure-cli')
-rw-r--r--pkgs/tools/admin/azure-cli/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/admin/azure-cli/default.nix b/pkgs/tools/admin/azure-cli/default.nix
index 0c41f4127c8..925ed7699ae 100644
--- a/pkgs/tools/admin/azure-cli/default.nix
+++ b/pkgs/tools/admin/azure-cli/default.nix
@@ -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