summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 26259b43..e3bae75f 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -464,6 +464,12 @@ fn nativeMain(init: std.process.Init) !void {
}
opts.tty_only = explicit_tty or session_only;
opts.mounts = mounts[0..mounts_len];
+ // `zig build run-isolated` with nothing named: something to look at on
+ // arrival, read out of the binary itself.
+ if (pardes.isolated and positional == null) {
+ session_only = false;
+ positional = "src/pardes.zig";
+ }
if (detach != null and attach != null)
badArgs(init.io, "--detach and --attach are opposites: one runs the session, the other joins one", .{});
// --wait waits on the pane a FILE opens: with none there is nothing to