{"id":17082252,"url":"https://github.com/ocadaruma/zsh-gcloud-prompt","last_synced_at":"2025-05-01T21:31:22.297Z","repository":{"id":78104323,"uuid":"89383125","full_name":"ocadaruma/zsh-gcloud-prompt","owner":"ocadaruma","description":"Show current gcloud config in zsh prompt.","archived":false,"fork":false,"pushed_at":"2019-11-23T10:40:02.000Z","size":26,"stargazers_count":22,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T13:01:35.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ocadaruma.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-04-25T16:32:13.000Z","updated_at":"2023-11-13T21:34:19.000Z","dependencies_parsed_at":"2023-04-10T00:18:07.579Z","dependency_job_id":null,"html_url":"https://github.com/ocadaruma/zsh-gcloud-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocadaruma%2Fzsh-gcloud-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocadaruma%2Fzsh-gcloud-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocadaruma%2Fzsh-gcloud-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocadaruma%2Fzsh-gcloud-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocadaruma","download_url":"https://codeload.github.com/ocadaruma/zsh-gcloud-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278383,"owners_count":17285080,"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":[],"created_at":"2024-10-14T13:00:23.728Z","updated_at":"2024-11-12T13:12:28.878Z","avatar_url":"https://github.com/ocadaruma.png","language":"Shell","funding_links":[],"categories":["Themes","Recently Updated"],"sub_categories":["ZSH on Windows","[Oct 14, 2024](/content/2024/10/14/README.md)"],"readme":"# zsh-gcloud-prompt\nShow current gcloud config in zsh prompt.\n\nThis script is inspired by [zsh-kubectl-prompt](https://github.com/superbrothers/zsh-kubectl-prompt).\n\n![capture](https://github.com/ocadaruma/zsh-gcloud-prompt/blob/master/capture.png)\n\n## Installation\n\n#### 1. Check out the repository.\n\n```\n$ git clone https://github.com/ocadaruma/zsh-gcloud-prompt.git /path/to/zsh-gcloud-prompt\n```\n\n#### 2. Configure your zsh\n\nCurrent gcloud config is stored in `ZSH_GCLOUD_PROMPT`. (in the form of `\"${active-account}:${active-project}\"`)\n\nFor example, add following lines to `~/.zshrc`\n\n```\nautoload -Uz colors; colors\nsource /path/to/zsh-gcloud-prompt/gcloud.zsh\nRPROMPT='%{$fg[cyan]%}($ZSH_GCLOUD_PROMPT)%{$reset_color%}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focadaruma%2Fzsh-gcloud-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focadaruma%2Fzsh-gcloud-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focadaruma%2Fzsh-gcloud-prompt/lists"}