Przeglądaj źródła

choose does not ask to overwrite

Zander Hawke 1 rok temu
rodzic
commit
8943c85535
1 zmienionych plików z 8 dodań i 9 usunięć
  1. 8 9
      home/features/cli/fish.nix

+ 8 - 9
home/features/cli/fish.nix

@@ -5,15 +5,14 @@
     shellAliases = import ./shell-aliases.nix;
 
     interactiveShellInit = lib.mkAfter ''
-      ${lib.strings.fileContents (
-        pkgs.fetchFromGitHub {
-          owner = "catppuccin";
-          repo = "fish";
-          rev = "cc8e4d8";
-          sha256 = "sha256-udiU2TOh0lYL7K7ylbt+BGlSDgCjMpy75vQ98C1kFcc=";
-        }
-        + "/themes/Catppuccin Frappe.theme"
-      )}
+      fish_config theme choose "Catppuccin Frappe"
     '';
   };
+
+  xdg.configFile."fish/themes/Catppuccin Frappe.theme".text = lib.strings.fileContents (pkgs.fetchFromGitHub {
+    owner = "catppuccin";
+    repo = "fish";
+    rev = "cc8e4d8";
+    sha256 = "sha256-udiU2TOh0lYL7K7ylbt+BGlSDgCjMpy75vQ98C1kFcc=";
+  } + "/themes/Catppuccin Frappe.theme");
 }