From 8aafc3fa24c7475a07259eb06cd5d217f510df98 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 5 Aug 2026 19:32:30 -0300 Subject: add a Shell builtin, default fish, with per-family prompt integration --- build.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 4957adb4..feefecdc 100644 --- a/build.zig +++ b/build.zig @@ -821,6 +821,17 @@ pub fn build(b: *std.Build) void { .link_libc = true, }) }); unit_step.dependOn(&b.addRunArtifact(temp_file_test).step); + // Resolving a shell binary and picking its prompt integration is the + // same shape: native-shell IO, no core imports, its own libc-linked + // module. (A test file the core merely re-exported would compile and + // silently never run — zig only collects tests from what it analyses.) + const shell_bin_test = b.addTest(.{ .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("src/shell_bin.zig"), + .link_libc = true, + }) }); + unit_step.dependOn(&b.addRunArtifact(shell_bin_test).step); // crt.zig is pure std — the mouse-mapping-vs-shader-formula test const crt_test = b.addTest(.{ .root_module = b.createModule(.{ .target = target, -- cgit v1.3