lib: preview: Load only bash-it.sh when previewing

Otherwise you change your theme to your default...
pull/2114/head
Noah Gorny 2022-03-08 00:01:36 +02:00
parent db6fd42104
commit 77c135956d
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function _bash-it-preview() {
# shellcheck disable=SC2034
for BASH_IT_THEME in "${themes[@]}"; do
BASH_IT_LOG_LEVEL=0
bash --init-file "${BASH_IT_BASHRC:-${BASH_IT?}/bash_it.sh}" -i <<< '_bash-it-flash-term "${#BASH_IT_THEME}" "${BASH_IT_THEME}"'
bash --init-file "${BASH_IT?}/bash_it.sh" -i <<< '_bash-it-flash-term "${#BASH_IT_THEME}" "${BASH_IT_THEME}"'
done
}