From abc5869ccc0b4c6d14941a2dd514866eea8b6921 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 18 Jul 2020 09:27:07 +0200 Subject: [PATCH] zsh: Add gcloud docker function --- home/.zshrc.docker | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home/.zshrc.docker b/home/.zshrc.docker index d932129..5b666d2 100644 --- a/home/.zshrc.docker +++ b/home/.zshrc.docker @@ -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 "$@" +}