From 1514ef34d4ddeeab953e7ae84de876d3bbd65e66 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Mon, 16 Aug 2021 12:46:48 -0400 Subject: [PATCH] add alias for using curl with private GCP resources --- private_dot_bashrc.d/aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/private_dot_bashrc.d/aliases.sh b/private_dot_bashrc.d/aliases.sh index 7b326ec..115ddc2 100644 --- a/private_dot_bashrc.d/aliases.sh +++ b/private_dot_bashrc.d/aliases.sh @@ -34,3 +34,4 @@ ex () } alias m4b-tool='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt m4b-tool' +alias gcurl='curl --header "Authorization: Bearer $(gcloud auth print-identity-token)"'