Skip to content

Commit

Permalink
fix(kube): escape env var
Browse files Browse the repository at this point in the history
Need this to be interpreted when tmux status is updated rather than when
this script executes as the value is set in the tmux env rather than the
current shell
  • Loading branch information
pauldthomson authored Sep 4, 2024
1 parent c26d7b8 commit c31b9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status/kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ show_kube() {
context_color=$(get_tmux_batch_option "@catppuccin_kube_context_color" "#{thm_red}")
namespace_color=$(get_tmux_batch_option "@catppuccin_kube_namespace_color" "#{thm_cyan}")
symbol_enabled=${KUBE_TMUX_SYMBOL_ENABLE:-false}
text=$(get_tmux_batch_option "@catppuccin_kube_text" "#(KUBE_TMUX_SYMBOL_ENABLE=$symbol_enabled ${TMUX_PLUGIN_MANAGER_PATH}kube-tmux/kube.tmux 250 '$context_color' '$namespace_color')")
text=$(get_tmux_batch_option "@catppuccin_kube_text" "#(KUBE_TMUX_SYMBOL_ENABLE=$symbol_enabled \${TMUX_PLUGIN_MANAGER_PATH}kube-tmux/kube.tmux 250 '$context_color' '$namespace_color')")

module=$(build_status_module "$index" "$icon" "$color" "$text")

Expand Down

0 comments on commit c31b9b2

Please sign in to comment.