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());