dotfiles/dot_config/fish/private_functions/update_theme.fish

8 lines
248 B
Fish
Raw Normal View History

2024-11-16 23:36:56 +01:00
function update_theme --on-variable macOS_Theme
if [ "$macOS_Theme" = "dark" ]
yes | fish_config theme save "Catppuccin Mocha"
else if [ "$macOS_Theme" = "light" ]
yes | fish_config theme save "Catppuccin Latte"
end
end