Skip to content

Commit

Permalink
fix: shellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
egel committed Sep 14, 2024
1 parent a3f964c commit a8d87fa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions gruvbox-tpm.tmux
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

# shellcheck disable=SC1091
source "./src/gruvbox-main.sh"

# vim: ai et ft=bash
8 changes: 8 additions & 0 deletions src/gruvbox-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ readonly CURRENT_DIR
declate -a TMUX_CMDS

# load libraries
# shellcheck disable=1091
source "${CURRENT_DIR}/src/helper_methods.sh"
# shellcheck disable=1091
source "${CURRENT_DIR}/src/tmux_utils.sh"
# shellcheck disable=1091
source "${CURRENT_DIR}/src/theme_gruvbox_dark256.sh"
# shellcheck disable=1091
source "${CURRENT_DIR}/src/theme_gruvbox_light256.sh"

readonly TMUX_GRUVBOX="@tmux-gruvbox"
Expand Down Expand Up @@ -40,11 +44,15 @@ main() {

case "$_theme" in
light | light256)
# shellcheck disable=1091
source "${CURRENT_DIR}/src/palette_gruvbox_light.sh"
# shellcheck disable=1091
source "${CURRENT_DIR}/src/theme_gruvbox_light256.sh"
;;
dark | dark256 | *)
# shellcheck disable=1091
source "${CURRENT_DIR}/src/palette_gruvbox_dark.sh"
# shellcheck disable=1091
source "${CURRENT_DIR}/src/theme_gruvbox_dark256.sh"
;;
esac
Expand Down
1 change: 1 addition & 0 deletions src/palette_gruvbox_dark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#
# The names of colors used from https://github.com/morhetz/gruvbox

# shellcheck disable=2034 # ignored as this file only contains var definitions
col_bg=colour235
col_bg0_h=colour234
col_bg0=colour235
Expand Down
1 change: 1 addition & 0 deletions src/palette_gruvbox_light.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#
# The names of colors used from https://github.com/morhetz/gruvbox

# shellcheck disable=2034 # ignored as this file only contains var definitions
col_bg=colour229
col_bg0_h=colour230
col_bg0=colour229
Expand Down
5 changes: 4 additions & 1 deletion src/theme_gruvbox_light256.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

# themes may use different colors in sets therefore we setup dark and light separately
# Themes may use different colors in sets therefore we setup dark and light
# separately.
#
# shellcheck disable=SC2154
theme_set_light_256() {
local _left_status_value _right_status_value _window_status_current_format _window_status_format
_left_status_a=$1
Expand Down

0 comments on commit a8d87fa

Please sign in to comment.