{"id":15287568,"url":"https://github.com/mdan16/cf-ps1","last_synced_at":"2026-05-09T14:43:12.717Z","repository":{"id":45453901,"uuid":"399793852","full_name":"mdan16/cf-ps1","owner":"mdan16","description":"Cloud Foundry prompt for bash and zsh","archived":false,"fork":false,"pushed_at":"2022-11-01T06:42:19.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T09:14:53.583Z","etag":null,"topics":["bash","cf-cli","cloudfoundry","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/mdan16.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}},"created_at":"2021-08-25T11:28:30.000Z","updated_at":"2021-12-13T06:20:47.000Z","dependencies_parsed_at":"2023-01-21T03:16:41.787Z","dependency_job_id":null,"html_url":"https://github.com/mdan16/cf-ps1","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/mdan16%2Fcf-ps1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdan16%2Fcf-ps1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdan16%2Fcf-ps1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdan16%2Fcf-ps1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdan16","download_url":"https://codeload.github.com/mdan16/cf-ps1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200680,"owners_count":20576673,"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","cf-cli","cloudfoundry","zsh"],"created_at":"2024-09-30T15:31:41.401Z","updated_at":"2026-05-09T14:43:12.689Z","avatar_url":"https://github.com/mdan16.png","language":"Shell","funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows"],"readme":"# cf-ps1\n\nThe cf-ps1 set the current foundation and organization and space of [Cloud Foundry](https://www.cloudfoundry.org/) to your Bash/Zsh prompt.\n\n![prompt.png](./images/prompt.png)\n\nThe cf-ps1 inspired by [kube-ps1](https://github.com/jonmosco/kube-ps1).\n\n## Requirements\n\n- [jq](https://stedolan.github.io/jq/)\n\n## Supported Shell\n\n- Bash\n- Zsh\n\n## Installing\n\n### Bash\n\nSource the cf-ps1.sh in your `~/.bashrc`\n\n```sh\nCF_PS1_API_ENDPOINT_FOUNDATION_POSITION=2 # when your cf api endtpoint is https://api.foundation.example.com \nsource /path/to/cf-ps1.sh\nPS1=\"[\\u@\\h \\W $(cf_ps1)]\\$ \"\n```\n\n### Zsh\n\nSource the cf-ps1.sh in your `~/.zshrc`\n\n```sh\nCF_PS1_API_ENDPOINT_FOUNDATION_POSITION=2 # when your cf api endtpoint is https://api.foundation.example.com \nsource /path/to/cf-ps1.sh\nPROMPT='$(cf_ps1)'$PROMPT\n```\n\n## Environment\n\n| Variable | Format | Default | Description |\n| :--- | :--- | :--- | :--- |\n| CF_PS1_API_ENDPOINT_FOUNDATION_POSITION | integer | `false` | When a api endpoint is `https://api.foundation.example.com`, `api` will be displayed if set to `1`, `foundation` will be displayed if set to `2`. If not set, the entire api endpoint will be displayed as foundation. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdan16%2Fcf-ps1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdan16%2Fcf-ps1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdan16%2Fcf-ps1/lists"}