Skip to content

Commit

Permalink
lib: preview: Load only bash-it.sh when previewing
Browse files Browse the repository at this point in the history
Otherwise you change your theme to your default...
  • Loading branch information
NoahGorny committed Mar 7, 2022
1 parent db6fd42 commit 77c1359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/preview.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 77c1359

Please sign in to comment.