Skip to content

Commit ef94979

Browse files
authored
fix: change tmux plugin kube module uses (#531)
Fixed the kube module by doing the following: * Replaced `jonmosco/kube-tmux` with `tony-sol/tmux-kubectx` as the former was incorrectly formatting the tmux output and doesn't look to be maintained at all anymore. * Updated the Kube Module's documentation to account for the change in tmux plugin being used.
1 parent 14a546f commit ef94979

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/status-line.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ run '~/.tmux/plugins/tpm/tpm'
220220

221221
## Kube module
222222

223-
**Requirements:** This module depends on [kube-tmux](https://github.com/jonmosco/kube-tmux).
223+
**Requirements:** This module depends on [tmux-kubectx](https://github.com/tony-sol/tmux-kubectx).
224224

225-
**Install:** The preferred way to install kube-tmux is using [TPM](https://github.com/tmux-plugins/tpm).
225+
**Install:** The preferred way to install tmux-kubectx is using [TPM](https://github.com/tmux-plugins/tpm).
226226

227227
**Configure:**
228228

@@ -234,6 +234,6 @@ run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
234234

235235
set -agF status-right "#{E:@catppuccin_status_kube}"
236236

237-
set -g @plugin 'jonmosco/kube-tmux'
237+
set -g @plugin 'tony-sol/tmux-kubectx'
238238
run '~/.tmux/plugins/tpm/tpm'
239239
```

status/kube.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ set -ogqF "@catppuccin_${MODULE_NAME}_color" "#{E:@thm_blue}"
88
set -ogqF "@catppuccin_kube_context_color" "#{E:@thm_red}"
99
set -ogqF "@catppuccin_kube_namespace_color" "#{E:@thm_sky}"
1010
set -ogq "@catppuccin_${MODULE_NAME}_text" \
11-
" #(\${TMUX_PLUGIN_MANAGER_PATH}kube-tmux/kube.tmux 250 #{@catppuccin_kube_context_color} #{@catppuccin_kube_namespace_color})"
11+
" #{l:#[fg=#{@catppuccin_kube_context_color}]#{kubectx_context}#[fg=default]:#[fg=#{@catppuccin_kube_namespace_color}]#{kubectx_namespace}}"
1212

1313
source -F "#{d:current_file}/../utils/status_module.conf"

0 commit comments

Comments
 (0)