chore: initial commit
This commit is contained in:
6
src/macos/macos.zig
Normal file
6
src/macos/macos.zig
Normal file
@@ -0,0 +1,6 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn getUsername(allocator: std.mem.Allocator) ![]u8 {
|
||||
const username = try std.process.getEnvVarOwned(allocator, "USER");
|
||||
return username;
|
||||
}
|
||||
Reference in New Issue
Block a user