Open tao12345666333 opened 5 years ago
Hmm, what does your .tmux.conf look like where you are calling the script? Can you paste it here?
Thanks for your reply. I just put the script to my local path $HOME/workspace/kube-tmux/kube.tmux
.
set -g status-left '[#(whoami)]'
set -g status-right '[#(date +" %m-%d %H:%M ") #(getbat.sh) #(/bin/bash $HOME/workspace/kube-tmux/kube.tmux 250 red cyan)]'
set -g status-justify "centre"
set -g pane-active-border-fg '#55ff53'
set -g pane-border-fg '#7fcfee'
Having the same issue, any updates?
I have multiple clusters.
I can connect each other by seting
KUBECONFIG
environment variable.The script can get correct output, like this:
But the tmux status bar can not get correct result. I know that it did not get the correct environment variable when it executed. And I want to know how can I do this?
Thanks!