fix: kitty theme add a fallback for auto change theme

This commit is contained in:
grassblock 2024-12-17 10:41:46 +08:00
parent c0f72c3280
commit ebdaf57460
2 changed files with 5 additions and 2 deletions

View file

@ -1,2 +1,3 @@
#!/usr/bin/env bash
kitten themes --config-file-name=themes.conf "nord-light"
KITTY_CONF_PATH = $HOME/.config/kitty
kitten themes --config-file-name=themes.conf "nord-light" || cp $KITTY_CONF_PATH/themes/nord-light.conf $KITTY_CONF_PATH/current-theme.conf