linting clean up

pull/1762/head
cornfeedhobo 2021-01-03 23:19:53 -06:00
parent 4f7fc134ad
commit 8087e7af49
No known key found for this signature in database
GPG Key ID: 724357093F994B26
2 changed files with 14 additions and 9 deletions

View File

@ -24,6 +24,10 @@ docs
bash_it.sh
lint_clean_files.sh
# libs
#
lib/appearance.bash
# themes
#
themes/90210

View File

@ -1,19 +1,20 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090
# colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad'
if [[ -z "$CUSTOM_THEME_DIR" ]]; then
CUSTOM_THEME_DIR="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"
CUSTOM_THEME_DIR="${BASH_IT_CUSTOM:=${BASH_IT}/custom}/themes"
fi
# Load the theme
if [[ $BASH_IT_THEME ]]; then
if [[ -f $BASH_IT_THEME ]]; then
source $BASH_IT_THEME
elif [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
else
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
fi
if [[ "$BASH_IT_THEME" ]]; then
if [[ -f $BASH_IT_THEME ]]; then
source "$BASH_IT_THEME"
elif [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
else
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
fi
fi