fix: shellcheck errors

This commit is contained in:
Maciej Sypien 2024-09-15 01:15:39 +02:00
parent a3f964c002
commit a8d87fa13b
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
5 changed files with 15 additions and 1 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
source "./src/gruvbox-main.sh"
# vim: ai et ft=bash

View file

@ -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"
@ -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

View file

@ -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

View file

@ -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

View file

@ -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