1.0.4 • Published 3 years ago
kctx v1.0.4
kctx
Kubernetes context tool.
functionalities:
s- switches k8s context (you can pass words that are included in context name, like "dev"), supports yargs completionsp- prints prompt for ps1 (tested on bash and zsh on MacOS) with colored output (configurable by~/.kctx.jsonconfig file)c- prints all available colorsls- prints all available contexts
Installation
npm install -g kctx
Prompt setup
zsh:
setopt PROMPT_SUBST
PROMPT=$'$(echo $(kctx p))'$'\n'$PROMPTbash:
export PS1='$(kctx p)'$'\n'$PS1For context name completions use yargs completions on s command.