summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/development/javascript.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/settings/development/javascript.nix b/user/settings/development/javascript.nix
index 2dc2e1c1..f19e2b3d 100644
--- a/user/settings/development/javascript.nix
+++ b/user/settings/development/javascript.nix
@@ -103,6 +103,17 @@ in
     pul = "pnpm unlink";
     px = "pnpx";
 
+    bn = "bun";
+    bni = "bun install";
+    bna = "bun add";
+    bnad = "bun add --dev";
+    bnr = "bun run";
+    bnu = "bun update";
+    bnrm = "bun remove";
+    bnd = "bun dev";
+    bnp = "bun pm";
+    bnl = "bun pm ls";
+
     np = "npm";
     npi = "npm install";
     npl = "npm ls";
@@ -120,6 +131,18 @@ in
     npul = "npm unlink";
   };
 
+  programs.git.attributes = [
+    "*.lockb diff=lockb"
+  ];
+  programs.git.extraConfig."diff.lockb" = {
+    textconv = "bun";
+    binary = true;
+  };
+
+  xdg.configFile.".bunfig.toml".text = ''
+    [install.cache]
+    dir = "${config.xdg.cacheHome}/bun/"
+  '';
   xdg.configFile."npm/config".text = ''
     prefix=''${HOME}/.local
     cache=${config.xdg.cacheHome}/npm/