zsh: Add gcloud docker function
This commit is contained in:
parent
b60639f2f6
commit
abc5869ccc
|
@ -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 "$@"
|
||||
}
|
||||
|
|
Reference in a new issue