{"id":15581777,"url":"https://github.com/unixorn/kubectx-zshplugin","last_synced_at":"2025-04-13T05:44:58.796Z","repository":{"id":36432208,"uuid":"213049327","full_name":"unixorn/kubectx-zshplugin","owner":"unixorn","description":"Loads kubectx and kubens automagically for you","archived":false,"fork":false,"pushed_at":"2022-10-20T21:46:45.000Z","size":14,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:44:54.770Z","etag":null,"topics":["hacktoberfest","k3s","k8s","kubectx","kubernetes","zsh","zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unixorn.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":"2019-10-05T18:18:39.000Z","updated_at":"2022-07-21T06:08:25.000Z","dependencies_parsed_at":"2023-01-17T01:25:20.885Z","dependency_job_id":null,"html_url":"https://github.com/unixorn/kubectx-zshplugin","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/unixorn%2Fkubectx-zshplugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixorn%2Fkubectx-zshplugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixorn%2Fkubectx-zshplugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixorn%2Fkubectx-zshplugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unixorn","download_url":"https://codeload.github.com/unixorn/kubectx-zshplugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670520,"owners_count":21142901,"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":["hacktoberfest","k3s","k8s","kubectx","kubernetes","zsh","zsh-plugin"],"created_at":"2024-10-02T19:54:45.603Z","updated_at":"2025-04-13T05:44:58.775Z","avatar_url":"https://github.com/unixorn.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# kubectx-zshplugin\n\n[kubectx](https://github.com/ahmetb/kubectx) is a great tool for Kubernetes that provides a `kubectx` and `kubens` command that make it easier for you to work with multiple clusters and namespaces.\n\nkubectx-zshplugin automatically installs them into your ZSH environment for you.\n\n## Installation\n\n`kubectx-zshplugin` can be automatically loaded as a ZSH plugin by any framework that supports [oh-my-zsh](github.com/robbyrussell/oh-my-zsh) compatible plugins.\n\n### zgen\n\nIf you're using [zgen](https://github.com/tarjoilija/zgen):\n\n1. Add `zgen load unixorn/kubectx-zshplugin` to your `.zshrc` along with your other `zgen load` commands.\n2. `zgen reset \u0026\u0026 zgen save`. `zgen` will automatically clone the `git` repository the next time you start a terminal session.\n\n### Antigen\n\nIf you're using [Antigen](https://github.com/zsh-users/antigen):\n\n1. Add `antigen bundle unixorn/kubectx-zshplugin` to your `.zshrc` where you've listed your other plugins.\n2. Close and reopen your terminal window to start a new session and Antigen will automatically clone and load the plugin for you. Alternatively, you can run `antigen bundle unixorn/kubectx-zshplugin` in a running shell to have `antigen` automatically clone and load the new plugin immediately.\n\n### Oh-My-ZSH\n\nIf you're using [oh-my-zsh](github.com/robbyrussell/oh-my-zsh):\n\n1. In the terminal, change to _oh-my-zsh_'s custom plugin directory:\n\n    `cd ~/.oh-my-zsh/custom/plugins/`\n\n2. Clone the repository into a new `kubectx` directory:\n    ```\n    git clone --recursive https://github.com/unixorn/kubectx-zshplugin.git kubectx\n    cd ~/.oh-my-zsh/custom/plugins/kubectx/\n    git submodule init\n    git submodule update\n    ```\n\n3. Edit your `~/.zshrc` and add `kubectx` – same as clone directory – to the list of plugins to enable:\n\n    `plugins=( ... kubectx )`\n\n4. Then, restart your terminal application to **refresh context** and use the plugin. Alternatively, you can source your current shell configuration:\n\n    `source ~/.zshrc`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixorn%2Fkubectx-zshplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funixorn%2Fkubectx-zshplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixorn%2Fkubectx-zshplugin/lists"}