Skip to content

A kubectl plugin to visualize your current context in your shell prompt

License

Notifications You must be signed in to change notification settings

nlowe/kubectl-prompt_decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl prompt-decorator

License Go Report Card

Prints your current context and default namespace, useful for adding to your shell's $PROMPT

Usage

On windows this requires Kubectl 1.16+ if you want to install the binary as a kubectl plugin.

Install the proper kubectl-prompt_decorator binary for your platform somewhere on your $PATH. You can now kubectl prompt-decorator!

$ which kubectl-prompt_decorator
~/.bin/kubectl-prompt_decorator
$ kubectl prompt-decorator
[☸ docker-desktop:default]

Building

You need go 1.13+. Build the binary for your platform:

# linux / unix
$ go build -o kubectl-prompt_decorator main.go

# windows
$ go build -o kubectl-prompt_decorator.exe main.go

Then place kubectl-prompt_decorator on your $PATH.

TODO

  • Publish binaries as GitHub Releases
  • Publish as a krew plugin
  • Better theme support (currently only the default theme is available)

License

This plugin is published under the MIT License. See ./LICENSE for details.

About

A kubectl plugin to visualize your current context in your shell prompt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages