Files
omarchycn/bin/omarchy-theme-dir
T
2026-07-24 12:19:39 -07:00

19 lines
428 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Print the directory holding a theme, preferring a user-installed copy
# omarchy:args=<theme-name>
# omarchy:examples=omarchy theme dir tokyo-night
theme="${1:-}"
if [[ -z $theme ]]; then
echo "Usage: omarchy-theme-dir <theme-name>" >&2
exit 1
fi
if [[ -d $HOME/.config/omarchy/themes/$theme ]]; then
echo "$HOME/.config/omarchy/themes/$theme"
else
echo "$OMARCHY_PATH/themes/$theme"
fi