diff options
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 10 |
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. |
