From 24a230a02717f310e5e25a018707ac26b0c6e4d3 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 23 Dec 2025 23:32:15 -0500 Subject: [PATCH] build instructions --- README.md | 6 ++++++ build.zig | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 9c0b7a1..b2f28c1 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,9 @@ wom # Showcase ![wom timer](./examples/timer.gif "wom timer") + +# Building +/usr/local is just my preferred prefix, nothing should require you to use it. +```bash +zig build install -p /usr/local +``` diff --git a/build.zig b/build.zig index c76d62f..5fa02f2 100644 --- a/build.zig +++ b/build.zig @@ -67,7 +67,10 @@ pub fn build(b: *std.Build) void { exe.root_module.addIncludePath(ds.path(".")); exe.root_module.addIncludePath(cargs.path("include")); exe.root_module.addIncludePath(log.path("src")); + + // add the files to the install step b.installArtifact(exe); + b.installFile("completions/_wom.zsh", "zsh/site-functions/_wom.zsh"); const run_cmd = b.addRunArtifact(exe); run_cmd.step.dependOn(b.getInstallStep());