{"id":21888614,"url":"https://github.com/swisscom/kube-tools","last_synced_at":"2025-08-11T17:45:54.882Z","repository":{"id":57624858,"uuid":"348700841","full_name":"swisscom/kube-tools","owner":"swisscom","description":"A collection of small tools to work with Kubernetes","archived":false,"fork":false,"pushed_at":"2021-03-17T12:32:11.000Z","size":153,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-18T02:57:42.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/swisscom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-17T12:27:03.000Z","updated_at":"2021-03-17T13:58:46.000Z","dependencies_parsed_at":"2022-08-26T22:23:17.793Z","dependency_job_id":null,"html_url":"https://github.com/swisscom/kube-tools","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/swisscom%2Fkube-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fkube-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fkube-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fkube-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swisscom","download_url":"https://codeload.github.com/swisscom/kube-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244895540,"owners_count":20527904,"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-11-28T11:16:11.838Z","updated_at":"2025-03-22T02:24:02.999Z","avatar_url":"https://github.com/swisscom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kube-tools\n\nA collection of tools to work with Kubernetes\n\n## kube-ps1\n\nA super simple command to display a string that you can easily put in your PS1 prompt.\nThe output is usually used in your prompt as follows:\n\n\u003cimg src=\"docs/screenshots/kube-ps1.png\" width=\"300\" alt=\"kube-ps1 prompt\"/\u003e\n\n### Usage\n\nDepending on what and how you want your prompt look like,\nput the following in your `~/.zshrc` / `~/.bashrc`:\n\n```bash\nPS1='%{$fg[green]%}%n@%m:%{$fg_bold[blue]%}%2~ %{$fg[yellow]$(kube-ps1) %}$(git_prompt_info)%{$reset_color%}%(!.#.$) '\n```\n\nBasically, call `$(kube-ps1)` in your prompt and enjoy!\n\n\n## kcn\n\nSimple utility to switch between namespaces\n\n\n\u003cimg src=\"docs/screenshots/kcn.png\" width=\"300\" alt=\"kcn prompt\"/\u003e\n\n\n### Usage\n\n```bash\n$ kcn ns1 # Switches to ns1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fkube-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswisscom%2Fkube-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fkube-tools/lists"}