minor fix

This commit is contained in:
js0ny 2025-07-08 21:50:22 +08:00
parent 3bfde49348
commit 4062aeab3d
8 changed files with 39 additions and 12 deletions

View file

@ -7,8 +7,12 @@ case "Linux"
fish_config theme choose "Catppuccin Latte"
end
case "Darwin"
set SYSTEM_COLOR_SCHEME defaults read -g AppleInterfaceStyle
echo "[TODO] Check if dark mode is enabled in macOS"
set SYSTEM_COLOR_SCHEME (defaults read -g AppleInterfaceStyle)
if test $SYSTEM_COLOR_SCHEME = "Dark"
fish_config theme choose "Catppuccin Mocha"
else
fish_config theme choose "Catppuccin Latte"
end
case '*'
fish_config theme choose "Catppuccin Mocha"
end