dotfiles/.bash_it/lib/preview.bash

20 lines
367 B
Bash
Raw Normal View History

2022-02-27 20:00:49 +01:00
if [[ $BASH_PREVIEW ]];
then
unset BASH_PREVIEW #Prevent infinite looping
echo "
Previewing Bash-it Themes
"
THEMES="$BASH_IT/themes/*/*.theme.bash"
for theme in $THEMES
do
BASH_IT_THEME=${theme%.theme.bash}
BASH_IT_THEME=${BASH_IT_THEME##*/}
echo "
$BASH_IT_THEME"
echo "" | bash --init-file "${BASH_IT}/bash_it.sh" -i
done
fi