From e6363ec4b4008987ae2160ce914b9b7b59de7dd4 Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Fri, 9 Jan 2026 21:02:48 +0100 Subject: [PATCH] fish: use auto theme for automatic light/dark switching Fish 4.3+ auto themes handle the switching automatically, removing the need to call fish_config in the event handler. Co-Authored-By: Claude Opus 4.5 --- fish/conf.d/theme.fish | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fish/conf.d/theme.fish b/fish/conf.d/theme.fish index 1509d35..207c1eb 100644 --- a/fish/conf.d/theme.fish +++ b/fish/conf.d/theme.fish @@ -5,23 +5,20 @@ # Simon Olofsson # +# Fish 4.3+ auto themes handle light/dark switching automatically. +fish_config theme choose "Rosé Pine Moon Auto" + # Apply the theme. function __so_apply_theme --on-variable fish_terminal_color_theme if test "$fish_terminal_color_theme" = "dark" set -f appearance "dark" set -f theme_variant "moon" - set -f theme_variant_capitalized "Moon" else set -f appearance "light" set -f theme_variant "dawn" - set -f theme_variant_capitalized "Dawn" end - fish_config theme choose "Rosé Pine $theme_variant_capitalized" - # Redraw the prompt - commandline -f repaint - # Set colors for Hydro set -g hydro_color_pwd $fish_color_foam set -g hydro_color_git $fish_color_iris