From ca0c0c70a9ae6957bffba01733d0c1ecd1200b1b Mon Sep 17 00:00:00 2001 From: Mike Priscella Date: Tue, 9 Jul 2024 09:05:12 -0400 Subject: [PATCH] Fixed shellcheck warnings --- .tmux/modules/kubernetes.sh | 5 +---- .tmux/modules/time.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.tmux/modules/kubernetes.sh b/.tmux/modules/kubernetes.sh index 83b2e93..a1bf6cc 100644 --- a/.tmux/modules/kubernetes.sh +++ b/.tmux/modules/kubernetes.sh @@ -3,12 +3,9 @@ show_kubernetes() { local index icon color text module - # context=$(kubectl config view --minify -o jsonpath='{.current-context}') - # namespace=$(kubectl config view --minify -o jsonpath='{.contexts[0].context.namespace}') - index=$1 icon=$(get_tmux_option "@catppuccin_kubernetes_icon" "󱃾") - color=$(get_tmux_option "@catppuccin_kubernetes_color" "$thm_blue") + color=$(get_tmux_option "@catppuccin_kubernetes_color" "${thm_blue:?}") text=$(get_tmux_option "@catppuccin_kubernetes_text" "#( $HOME/.tmux/modules/get_kubernetes_context.sh )") module=$(build_status_module "$index" "$icon" "$color" "$text") diff --git a/.tmux/modules/time.sh b/.tmux/modules/time.sh index 42b7daa..f986882 100644 --- a/.tmux/modules/time.sh +++ b/.tmux/modules/time.sh @@ -5,7 +5,7 @@ show_time() { index=$1 icon="$(get_tmux_option "@catppuccin_time_icon" "")" - color="$(get_tmux_option "@catppuccin_time_color" "$thm_yellow")" + color="$(get_tmux_option "@catppuccin_time_color" "${thm_yellow:?}")" text="$(get_tmux_option "@catppuccin_time_text" "%H:%M")" module=$(build_status_module "$index" "$icon" "$color" "$text")