zsh: Add gcloud docker function

This commit is contained in:
Simon Bruder 2020-07-18 09:27:07 +02:00
parent b60639f2f6
commit abc5869ccc
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -127,3 +127,14 @@ function ctop {
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
quay.io/vektorlab/ctop
}
function gcloud {
docker run \
--rm \
-it \
-e TERM=xterm-256color \
-v $HOME/.config/gcloud/:/root/.config/gcloud/ \
-v $HOME/.config/gcloud-ssh/:/root/.ssh/ \
google/cloud-sdk \
gcloud "$@"
}