1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00

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 \