termio: fix "forced" shell integration

When a shell is forced, we would supply its /-prefixed executable name
to mimic a path location. The rest of the integration detection logic
assumes just a base executable name. Fix the forced names accordingly.

Also add a unit test for this "force shell" behavior.
This commit is contained in:
Jon Parise
2024-04-20 11:27:15 -07:00
parent 2624d3a753
commit 5ea99d3626
2 changed files with 17 additions and 2 deletions

View File

@@ -16,4 +16,6 @@ pub const Impl = Exec;
test {
@import("std").testing.refAllDecls(@This());
_ = @import("termio/shell_integration.zig");
}