Created
February 17, 2026 11:11
-
-
Save ankitg12/673514c91f99cff3199d4b1fc71d933b to your computer and use it in GitHub Desktop.
Setup light mode in k9s #k9s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| # install yq if not installed | |
| if ! yq --version >/dev/null 2>&1; then | |
| echo "Installing yq..." | |
| sudo curl -fsSL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 \ | |
| -o /usr/local/bin/yq | |
| sudo chmod +x /usr/local/bin/yq | |
| fi | |
| # download light skin | |
| mkdir -p ~/.config/k9s/skins | |
| curl -fsSL https://raw.githubusercontent.com/derailed/k9s/master/skins/solarized-light.yaml \ | |
| -o ~/.config/k9s/skins/solarized-light.yaml | |
| # ensure config exists | |
| if [ ! -f ~/.config/k9s/config.yaml ]; then | |
| echo '{}' > ~/.config/k9s/config.yaml | |
| fi | |
| # set skin | |
| yq -i '.k9s.ui.skin = "solarized-light"' ~/.config/k9s/config.yaml | |
| echo "Done. Restart k9s." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment