summaryrefslogtreecommitdiff
path: root/.zsh/zshrc/99_gcloud
blob: 9257ef94c87c887dbba5bb85df9083f3c597ef51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# zshrc/99_gcloud
#
# Copyright © 2021 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git

if [ -f /usr/share/google-cloud-sdk/completion.zsh.inc ] ; then
  source /usr/share/google-cloud-sdk/completion.zsh.inc
elif [ -f $HOME/google-cloud-sdk/completion.zsh.inc ] ; then
  source $HOME/google-cloud-sdk/completion.zsh.inc
fi

if [ -x "$(which gke-gcloud-auth-plugin)" ] ; then
  # https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
  export USE_GKE_GCLOUD_AUTH_PLUGIN=True
fi

# vim:ft=zsh