From 17e85e83b96f2c2574bfb039bebec01c93a68a3b Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Wed, 27 May 2026 09:12:26 +0200 Subject: [PATCH] fix(fish): configure tide such that it works on first install --- home-manager/base/fish.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home-manager/base/fish.nix b/home-manager/base/fish.nix index 1f50e7d..ef09ded 100644 --- a/home-manager/base/fish.nix +++ b/home-manager/base/fish.nix @@ -22,6 +22,11 @@ }; home.activation.configure-tide = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - ${pkgs.fish}/bin/fish -c "tide configure --auto --style=Lean --prompt_colors='16 colors' --show_time=No --lean_prompt_height='Two lines' --prompt_connection=Disconnected --prompt_spacing=Compact --icons='Few icons' --transient=Yes" + if [ ! -e "$HOME/.config/fish/tide_configured" ]; then + echo "Configuring Tide..." + $DRY_RUN_CMD ${pkgs.fish}/bin/fish -c "tide configure --auto --style=Lean --prompt_colors='16 colors' --show_time=No --lean_prompt_height='Two lines' --prompt_connection=Disconnected --prompt_spacing=Compact --icons='Few icons' --transient=Yes" + $DRY_RUN_CMD touch "$HOME/.config/fish/tide_configured" + echo "Finish Configuring Tide..." + fi ''; }