I would like gcloud to use a specific .config
directory that I know the path of. Is there a way to force it to use this directory?
You can set the environment variable
CLOUDSDK_CONFIG=/path/to/dir
to override the default value of ~/.config/gcloud
.