A POSIX sh script for macOS and Linux to interactively switch k9s skins.
Verified with https://www.shellcheck.net.
chmod +x k9s-skin.sh
./k9s-skin.sh # interactive picker
./k9s-skin.sh dracula # apply a skin directly by name| Tool | Purpose | Install |
|---|---|---|
k9s |
The Kubernetes TUI being configured | brew install k9s / brew install k9s (Linux via Homebrew) |
| Tool | Purpose | Install | Fallback |
|---|---|---|---|
fzf |
Fuzzy skin picker with live YAML preview | brew install fzf |
Numeric menu |
These require no installation:
sh, find, grep, sed, sort, tr, head, wc, cp, printf, basename, dirname, readlink
- Detects the OS and resolves the correct k9s config path
- Scans the skins directory for
*.yamltheme files - Also checks for bundled skins shipped alongside the
k9sbinary - With
fzf: presents a fuzzy picker with a live preview of each skin's YAML in the right pane - Without
fzf: presents a numbered menu - Edits
config.yamlin-place, backing it up asconfig.yaml.bakfirst
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/k9s/ |
| Linux | ~/.config/k9s/ (or $XDG_CONFIG_HOME/k9s/) |
See k9s documentation https://k9scli.io/topics/skins/.
Community skins are available at the k9s skins repo.
