aboutsummaryrefslogtreecommitdiff
path: root/src/env.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.zig')
-rw-r--r--src/env.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/env.zig b/src/env.zig
index bb1e8bc..389890f 100644
--- a/src/env.zig
+++ b/src/env.zig
@@ -18,6 +18,7 @@ distfiles_dir: []const u8,
distfiles_history: usize,
default_category: ?[]const u8,
default_repo_branch: []const u8,
+make_conf: ?[]const u8,
editor_cmd: ?[]const u8,
_proc_env: std.process.Environ,
@@ -41,6 +42,7 @@ pub fn init(allocator: std.mem.Allocator, env: std.process.Environ, etc: []const
.distfiles_history = 1,
.default_category = null,
.default_repo_branch = "main",
+ .make_conf = null,
.editor_cmd = null,
._proc_env = env,
@@ -73,6 +75,8 @@ pub fn init(allocator: std.mem.Allocator, env: std.process.Environ, etc: []const
self.default_category = v.val;
} else if (std.mem.eql(u8, v.key, "git-branch") and v.val.len > 0) {
self.default_repo_branch = v.val;
+ } else if (std.mem.eql(u8, v.key, "make.conf") and v.val.len > 0) {
+ self.make_conf = v.val;
} else if (std.mem.eql(u8, v.key, "editor") and v.val.len > 0) {
self.editor_cmd = v.val;
} else {