From e43b7582a19d9d90ddb55eff1287ad99efe65852 Mon Sep 17 00:00:00 2001 From: Jim Anders Date: Wed, 10 Nov 2021 15:41:44 -0500 Subject: [PATCH] google-cloud-sdk: Add zsh completions Link the google-cloud-sdk zsh completion functions to the proper location. --- pkgs/tools/admin/google-cloud-sdk/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/admin/google-cloud-sdk/default.nix b/pkgs/tools/admin/google-cloud-sdk/default.nix index 8ab301eeb38c..fd02e7ea418e 100644 --- a/pkgs/tools/admin/google-cloud-sdk/default.nix +++ b/pkgs/tools/admin/google-cloud-sdk/default.nix @@ -99,6 +99,11 @@ in stdenv.mkDerivation rec { mv $out/google-cloud-sdk/completion.bash.inc $out/share/bash-completion/completions/gcloud ln -s $out/share/bash-completion/completions/gcloud $out/share/bash-completion/completions/gsutil + # setup zsh completion + mkdir -p $out/share/zsh/site-functions + mv $out/google-cloud-sdk/completion.zsh.inc $out/share/zsh/site-functions/_gcloud + ln -s $out/share/zsh/site-functions/_gcloud $out/share/zsh/site-functions/_gsutil + # This directory contains compiled mac binaries. We used crcmod from # nixpkgs instead. rm -r $out/google-cloud-sdk/platform/gsutil/third_party/crcmod \