A TMUX plugin indicating the current Kubernetes context in use.
✅ Per-pane context with automatic updates based on configuration switches and changes.
Using the Tmux Plugin Manager to manage the configuration:
-
add the plugin to your
~/.tmux.conf:set -g @plugin 'vitanovs/tmux-kubenv'
-
install with
<prefix> + I
Once installed, instrument:
-
.tmux.confwithkubenv.tmuxutility to display the current context in your status line:set -g status-left "#(/bin/sh ~/.tmux/plugins/tmux-kubenv/kubenv.tmux)"
-
.zshrcto enable the automatic context updates:source ~/.tmux/plugins/tmux-kubenv/scripts/hook_zsh.sh tmux_kubenv_precmd_hook_enable > /dev/null
The plugin supports the following global configuration options:
| Name | Description | Default |
|---|---|---|
@tmux_kubenv_title |
The plugin title displayed in the status line | Kubernetes |
@tmux_kubenv_color_title |
The color of the plugin title | #124F76 |
@tmux_kubenv_color_context_fg |
The foreground color of the context section | #124F76 |
@tmux_kubenv_color_context_bg |
The background color of the context section | #00DCEE |
@tmux_kubenv_color_namespace_fg |
The foreground color of the namespace section | #124F76 |
@tmux_kubenv_color_namespace_bg |
The background color of the namespace section | #D69F00 |
