{"id":18361137,"url":"https://github.com/progrhyme/gcloud-prompt","last_synced_at":"2026-05-08T03:40:06.024Z","repository":{"id":70990002,"uuid":"264602962","full_name":"progrhyme/gcloud-prompt","owner":"progrhyme","description":"Show gcloud config info on Bash/Zsh prompt","archived":false,"fork":false,"pushed_at":"2020-05-26T11:42:15.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T18:55:07.598Z","etag":null,"topics":["bash","google-cloud-sdk","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/progrhyme.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-17T06:59:02.000Z","updated_at":"2021-12-09T07:33:31.000Z","dependencies_parsed_at":"2023-02-22T07:30:33.127Z","dependency_job_id":null,"html_url":"https://github.com/progrhyme/gcloud-prompt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fgcloud-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fgcloud-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fgcloud-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fgcloud-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/progrhyme","download_url":"https://codeload.github.com/progrhyme/gcloud-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155515,"owners_count":21056653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","google-cloud-sdk","zsh"],"created_at":"2024-11-05T22:32:00.195Z","updated_at":"2025-10-29T22:46:50.038Z","avatar_url":"https://github.com/progrhyme.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![test](https://github.com/progrhyme/gcloud-prompt/workflows/test/badge.svg)\n\n# gcloud-prompt\n\nFetch gcloud client configuration information to show on shell prompt.\n\nCurrently, Bash \u0026 Zsh are supported.\n\n# Usage\n\nZsh:\n\n```sh\n. path/to/gcloud-prompt/gcloud-prompt.sh\n# Example prompt setting\nPROMPT=\"%F{cyan}[\\$(gcloud_prompt)]%f %n@%m%# \"\n```\n\nBash:\n\n```sh\n. path/to/gcloud-prompt/gcloud-prompt.sh\n# Example prompt setting\nPS1=\"\\[\\e[0;36m\\]\u003c\\$(gcloud_prompt)\u003e\\[\\e[m\\]\\n\\h:\\W \\u\\$ \"\n```\n\nExecute `toggle_gcloud_prompt` function to hide/show gcloud information.\n\n# Examples\n\nHere are some output examples.\n\n```sh\n# Default setting \u0026 default configuration\n$ gcloud_prompt\ndefault|bob@example.com,my-project\n\n# GCLOUD_PROMPT_CONFIG_KEYS=(core.project compute.region)\n$ gcloud_prompt\ndefault|my-project,asia-northeast1\n\n# GCLOUD_PROMPT_SHOW_CONFIG_PARAMS=no\n$ gcloud_prompt\ndefault\n```\n\n# Configuration\n\nYou can change below variables to customize the prompt output.\n\n Variable | Default | Type | Description\n----------|:-------:|:----:|---------------\n GCLOUD_PROMPT_ENABLED | on | String | If this variable is not set, `gcloud_prompt` prints nothing\n GCLOUD_PROMPT_SHOW_CONFIG_PARAMS | yes | String | If this variable doesn't equal to \"yes\", only current active configuration shows on prompt\n GCLOUD_PROMPT_CONFIG_KEYS | `(core.account core.project)` | Array | When `GCLOUD_PROMPT_SHOW_CONFIG_PARAMS` is set to `yes`, these properties appears on prompt\n GCLOUD_PROMPT_SEPARATOR | `\\|` | String | Delimiter between active configuration and config properties\n\nFor available properties to set in `GCLOUD_PROMPT_CONFIG_KEYS`, refer to https://cloud.google.com/sdk/gcloud/reference/config/get-value\n\n# Dependencies\n\nThis script depends on the current implementation of Cloud SDK; such as configuration\ndirectory structure, configuration data structure etc.\n\n# License\n\nThe MIT License.\n\nCopyright (c) 2020 IKEDA Kiyoshi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrhyme%2Fgcloud-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrhyme%2Fgcloud-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrhyme%2Fgcloud-prompt/lists"}