google-cloud-sdk: Add zsh completions

Link the google-cloud-sdk zsh completion functions to the proper
location.
This commit is contained in:
Jim Anders 2021-11-10 15:41:44 -05:00
parent 52c1e6486e
commit e43b7582a1
No known key found for this signature in database
GPG Key ID: 419EA42C3C5AFAF0

View File

@ -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 \