Closed pauldthomson closed 2 months ago
Can you show the output of tmux show-options -g status-right
when starting tmux and after reloading it once?
It seems that the env TMUX_PLUGIN_MANAGER_PATH
is empty here when using ~/.tmux.conf instead of ~/.config/tmux/tmux.conf but not for the shell (and subsequent reloads)
notice the #(KUBE_TMUX_SYMBOL_ENABLE=false kube-tmux/kube.tmux 250 '#f38ba8' '#89dceb')
before and #(KUBE_TMUX_SYMBOL_ENABLE=false /home/user/.tmux/plugins/kube-tmux/kube.tmux 250 '#f38ba8' '#89dceb')
after reload.
Before:
:!tmux show-options -g status-right
status-right "#[fg=#{?client_prefix,#f38ba8,#a6e3a1},bg=default,nobold,nounderscore,noitalics] #[fg=#1e1e2e,bg=#{?client_prefix,#f38ba8,#a6e3a1},nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #
S#[fg=#313244,bg=default,nobold,nounderscore,noitalics]#[fg=#89b4fa,bg=default,nobold,nounderscore,noitalics] #[fg=#1e1e2e,bg=#89b4fa,nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #(KUBE_TMUX
_SYMBOL_ENABLE=false kube-tmux/kube.tmux 250 '#f38ba8' '#89dceb')#[fg=#313244,bg=default,nobold,nounderscore,noitalics]"
after:
:!tmux show-options -g status-right
status-right "#[fg=#{?client_prefix,#f38ba8,#a6e3a1},bg=default,nobold,nounderscore,noitalics] #[fg=#1e1e2e,bg=#{?client_prefix,#f38ba8,#a6e3a1},nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #
S#[fg=#313244,bg=default,nobold,nounderscore,noitalics]#[fg=#89b4fa,bg=default,nobold,nounderscore,noitalics] #[fg=#1e1e2e,bg=#89b4fa,nobold,nounderscore,noitalics] #[fg=#cdd6f4,bg=#313244] #(KUBE_TMUX
_SYMBOL_ENABLE=false /Users/paul/.tmux/plugins/kube-tmux/kube.tmux 250 '#f38ba8' '#89dceb')#[fg=#313244,bg=default,nobold,nounderscore,noitalics]"
Seems you're on to a winner... I'll have a look in the TPM repo
Yeah odd, seems it should always get set when launching tmux: https://github.com/tmux-plugins/tpm/blob/99469c4a9b1ccf77fade25842dc7bafbc8ce9946/tpm#L26-L35
Will need to dig some more
So the issue seems to be that setting the tmux env var this way: https://github.com/tmux-plugins/tpm/blob/99469c4a9b1ccf77fade25842dc7bafbc8ce9946/tpm#L34 doesn't actually get sent to the initial shell spawned inside the tmux window: https://stackoverflow.com/questions/20701757/tmux-setting-environment-variables-for-sessions#comment114609472_49395839
I added an export "$DEFAULT_TPM_ENV_VAR_NAME"="$tpm_path"
below the line from tpm
above and it fixes the issue.
I'm not sure why this hasn't been noticed before, perhaps not many other things rely on this env var?
I'll open an issue on tpm
and see what the response is, and see if perhaps there's a cleaner way to fix this.
A better solution would be to escape the dollar sign so the env var is interpreted during the status update.
A better solution would be to escape the dollar sign so the env var is interpreted during the status update.
Yeah, I thought there was an issue with the way tpm was setting that var so figured it would be good to fix at the source but looks not to be the case anyway. I'll raise a minor PR here..
Is there an existing issue outlining your problem?
Describe your problem.
The kube module stops showing anything and I have to reload my tmux conf to make it appear again
Paste your configuration.
Attach screenshots.
https://github.com/user-attachments/assets/1c57c642-0f59-4240-b27a-d905174f2026
What tmux version are you seeing the issue on?
tmux 3.4
Any additional comments?
I have been running kube-tmux for a long time prior to using catppuccin and this issue didn't exist, so it seems theme related?