repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
543b45c
parent
8809f7e
author
Eric Bower
date
2025-12-29 10:04:19 -0500 EST
chore: remove trailing slash from TMPDIR
1 files changed,  +1, -1
M src/main.zig
+1, -1
1@@ -76,7 +76,7 @@ const Cfg = struct {
2     max_scrollback: usize = 10_000_000,
3 
4     pub fn init(alloc: std.mem.Allocator) !Cfg {
5-        const tmpdir = posix.getenv("TMPDIR") orelse "/tmp";
6+        const tmpdir = std.mem.trimRight(u8, posix.getenv("TMPDIR") orelse "/tmp", "/");
7         const uid = posix.getuid();
8 
9         const socket_dir: []const u8 = if (posix.getenv("ZMX_DIR")) |zmxdir|