summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
committerGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
commita479792a1ab2b593642d7f648194bfa23ce01dba (patch)
tree96ddee7d879a9084daa07db43b0b7910b072a785 /src/config.zig
parente179cc44fe5060c76a5b00c41e53f11209f5acd9 (diff)
parent4c761893e5b3fdae422622cfa02104ab36633045 (diff)
downloadpardes-a479792a1ab2b593642d7f648194bfa23ce01dba.tar.gz
pardes-a479792a1ab2b593642d7f648194bfa23ce01dba.zip
Merge the upstream daemon and replicated client/server refactor
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/config.zig b/src/config.zig
index 7ed3972c..5e7ddb24 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -164,7 +164,7 @@ pub const leader_path = paths: {
table.set(.Font, null);
table.set(.TaglineSize, null);
}
- if (pardes.platform == .gui) table.set(.Pet, null);
+ if (builtins.Pet.enabled) table.set(.Pet, null);
table.set(.MessageAnimation, null);
table.set(.MessageLinger, null);
table.set(.MessageFall, null);
@@ -217,8 +217,9 @@ pub const leader_path = paths: {
table.set(.Unmount, null);
}
if (pardes.can_attach) {
- table.set(.Attach, "sa");
table.set(.Detach, "sD");
+ table.set(.Adopt, null);
+ table.set(.Upgrade, "sU");
}
if (builtins.Peek.enabled) {
table.set(.Peek, null);
@@ -455,6 +456,11 @@ test "wheel drift guard" {
/// The shell when no `Shell` is set: the user's login shell ($SHELL), as a
/// terminal would start, else /bin/sh. An explicit `Shell` overrides it.
pub fn defaultShell() []const u8 {
+ // As the session that recorded found it (src/tape.zig).
+ return pardes.tape.value(.env, defaultShellHost, .{});
+}
+
+fn defaultShellHost() []const u8 {
if (comptime pardes.hosted) if (std.c.getenv("SHELL")) |s| {
const shell = std.mem.span(s);
// One that is not there, or not executable, is no shell: /bin/sh.