-
Hi, How can I trigger the segment update periodically, so that it always reflects the current output of the kubectl command ? ....at the moment it doesn't update, it always shows the info of the time tmux was started. Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The way environmental variables and shells works is that a change of an envvar is local to the current shell. tmux-powerline works in a different shell than the one you changed Two ideas to solve this would be:
|
Beta Was this translation helpful? Give feedback.
The way environmental variables and shells works is that a change of an envvar is local to the current shell. tmux-powerline works in a different shell than the one you changed
$KUBECONFIG
in. Thus, there must be some way to inform tmux-powerline on which value of$KUBECONFIG
should be used.Two ideas to solve this would be:
~/.kubeconfig
. Instead of changing the envvar in your shell, you write the current value to a file. To make this easy, you can make a shell function that you source or include in your shell startup file like*