Explicitly store the name of the current theme

This commit is contained in:
David Heinemeier Hansson
2026-01-01 16:22:17 -07:00
parent a308000390
commit 4ead763559
3 changed files with 31 additions and 36 deletions

View File

@@ -7,6 +7,8 @@ CURRENT_THEME_LINK="$HOME/.config/omarchy/current/theme"
CURRENT_THEME_NAME=""
if [[ -L $CURRENT_THEME_LINK ]]; then
CURRENT_THEME_NAME=$(basename "$(readlink "$CURRENT_THEME_LINK")")
elif [[ -f "$HOME/.config/omarchy/current/theme.name" ]]; then
CURRENT_THEME_NAME=$(cat "$HOME/.config/omarchy/current/theme.name")
fi
# Remove all symlinks from ~/.config/omarchy/themes