From c4a0220bf35522ac356ee5d219c36c0838d8ec51 Mon Sep 17 00:00:00 2001 From: samposa_1337 Date: Wed, 28 Oct 2026 17:17:21 +0300 Subject: add user --- src/main.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 8fe11e4..f334b2f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -14,17 +14,19 @@ pub fn main() !void { const ram = try stat.ramInfo(allocator); const hst = try stat.gethst(allocator); const ge = try stat.GetRam(allocator); + const user = try stat.users(allocator); defer allocator.free(ge); + defer allocator.free(user); defer allocator.free(ram); defer allocator.free(hst); defer allocator.free(osd); defer allocator.free(cpuq); defer allocator.free(kernel); const art = artd.logo; - try stdout.print("{s} Ezfetch\n", .{art[0]}); + try stdout.print("{s} Ezfetch\n", .{art[0]}); try stdout.print("{s} -----------------\n", .{art[1]}); try stdout.print("{s} Os: {s}\n", .{art[2], osd}); - try stdout.print("{s} Hostname: {s}\n", .{art[3], hst}); + try stdout.print("{s} User@hostname: {s}@{s}\n", .{art[3], user, hst}); try stdout.print("{s} Kernel: {s}\n", .{art[4], kernel}); try stdout.print("{s} Cpu: {s}\n", .{art[5], cpuq}); try stdout.print(" Ram: {s} / {s} \n", .{ge, ram}); -- cgit v1.3