From c9d360809df8fb69d6512066d81351e0afd212e6 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 6 Jun 2026 22:59:21 -0400 Subject: [PATCH] fix: improve error handling in first_run.fish --- conf.d/first_run.fish | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/conf.d/first_run.fish b/conf.d/first_run.fish index a81424d..801976d 100644 --- a/conf.d/first_run.fish +++ b/conf.d/first_run.fish @@ -33,8 +33,10 @@ echo "" if not type -q fisher echo " [first-run] Installing Fisher plugin manager..." if curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source - and fisher update 2>/dev/null - echo " [first-run] Fisher installed and plugins loaded." + echo " [first-run] Fisher installed." + if not fisher update 2>/dev/null + echo " [first-run] Plugin sync failed — run 'fisher update' manually." >&2 + end else echo " [first-run] Fisher install failed — run 'fisher update' manually." >&2 end @@ -42,4 +44,6 @@ end # ───────────────────────────── Apply theme ────────────────────────────── # Catppuccin Mocha theme ships with this config in themes/; it is always available. -fish_config theme choose "Catppuccin Mocha" 2>/dev/null +if not fish_config theme choose "Catppuccin Mocha" 2>/dev/null + echo " [first-run] Could not apply Catppuccin Mocha theme — set manually with 'fish_config theme choose'." >&2 +end