lib/appearance: `shellcheck` && `shfmt`

pull/2028/head
John D Pell 2022-01-29 22:17:42 -08:00 committed by John D Pell
parent fdff1d81cd
commit f7cba27f10
2 changed files with 12 additions and 12 deletions

View File

@ -76,6 +76,7 @@ completion/available/vuejs.completion.bash
completion/available/wpscan.completion.bash completion/available/wpscan.completion.bash
# libraries # libraries
lib/appearance.bash
lib/colors.bash lib/colors.bash
lib/helpers.bash lib/helpers.bash
lib/history.bash lib/history.bash

View File

@ -1,19 +1,18 @@
#!/usr/bin/env bash # shellcheck shell=bash
# colored ls # colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad' 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 # Load the theme
if [[ $BASH_IT_THEME ]]; then # shellcheck disable=SC1090
if [[ -f $BASH_IT_THEME ]]; then if [[ -n "${BASH_IT_THEME:-}" ]]; then
source $BASH_IT_THEME if [[ -f "${BASH_IT_THEME}" ]]; then
elif [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then source "${BASH_IT_THEME}"
source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" elif [[ -f "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" ]]; then
else source "$CUSTOM_THEME_DIR/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash" else
fi source "$BASH_IT/themes/$BASH_IT_THEME/$BASH_IT_THEME.theme.bash"
fi
fi fi