Files
blomarchy/bin/blob-theme-list
T

10 lines
341 B
Bash
Executable File

#!/bin/bash
# blob:summary=List available themes
# blob:examples=blob theme list | blob theme set "Tokyo Night"
{
find ~/.config/blob/themes/ -mindepth 1 -maxdepth 1 \( -type d -o -type l \) -printf '%f\n'
find "$BLOB_PATH/themes/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
} | sort -u | sed -E 's/(^|-)([a-z])/\1\u\2/g; s/-/ /g'