| name | random-theme |
| description | Apply a random Ghostty theme from all 463 built-in themes. |
/random-theme
Pick a random Ghostty theme and apply it to the current terminal.
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "${CLAUDE_PLUGIN_ROOT}/themes.md" ]; then
THEME=$(grep '^- ' "${CLAUDE_PLUGIN_ROOT}/themes.md" | sed 's/^- //' | awk 'BEGIN{srand()}{a[NR]=$0}END{print a[int(rand()*NR)+1]}')
bash "${CLAUDE_PLUGIN_ROOT}/scripts/apply-theme.sh" "$THEME" --tty
else
THEME=$(curl -sL https://raw.githubusercontent.com/CharlieGreenman/ghostty-dynamic-themes/main/themes.md | grep '^- ' | sed 's/^- //' | awk 'BEGIN{srand()}{a[NR]=$0}END{print a[int(rand()*NR)+1]}')
bash <(curl -sL https://raw.githubusercontent.com/CharlieGreenman/ghostty-dynamic-themes/main/apply-theme.sh) "$THEME" --tty
fi
echo "Applied theme: $THEME"
Tell the user which theme was applied.