Skip to content

Commit

Permalink
Fixed shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mpriscella committed Jul 9, 2024
1 parent e67a257 commit ca0c0c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .tmux/modules/kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion .tmux/modules/time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ca0c0c7

Please sign in to comment.