Ensure a default theme is used if none exist

This commit is contained in:
David Heinemeier Hansson
2025-09-17 15:12:17 +02:00
parent a039a0fdae
commit 75f035ddb6

View File

@@ -3,5 +3,12 @@
case "$TERMINAL" in
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
"kitty") killall -SIGUSR1 kitty ;;
"ghostty") killall -USRSIG2 ghostty ;;
"ghostty")
# Use a default theme if none exists
if [[ ! -f ~/.config/omarchy/current/theme/ghostty.conf ]]; then
echo "theme = Spacegray" >~/.config/omarchy/current/theme/ghostty.conf
fi
killall -USRSIG2 ghostty
;;
esac