build: update zig

This commit is contained in:
CJ van den Berg 2024-03-22 11:10:09 +01:00
parent 5c5fa22c68
commit 314b8d4909
7 changed files with 17 additions and 17 deletions

View file

@ -203,7 +203,7 @@ fn show_project(self: *Self) void {
fn abbrv_home(self: *Self) void {
if (std.fs.path.isAbsolute(self.name)) {
if (std.os.getenv("HOME")) |homedir| {
if (std.posix.getenv("HOME")) |homedir| {
const homerelpath = std.fs.path.relative(self.a, homedir, self.name) catch return;
if (homerelpath.len == 0) {
self.name = "~";