#!/usr/bin/env bash THEME_MD="./docs/themes.md" themes=$(yartsu --list-themes | tail -n +5 | cut -d' ' -f 3) mkdir -p ./docs/themes rm -f ./docs/themes/* rm -f $THEME_MD yartsu -o docs/themes/list.svg -- yartsu --list-themes cat >>"$THEME_MD" <

See below for example outputs of each. EOF for theme in $themes; do url="docs/themes/${theme}.svg" cat >>"$THEME_MD" <