summaryrefslogtreecommitdiff
path: root/src/shell.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.zig')
-rw-r--r--src/shell.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shell.zig b/src/shell.zig
index 2494fda..56ca991 100644
--- a/src/shell.zig
+++ b/src/shell.zig
@@ -22,6 +22,11 @@ pub fn executeCommand(
return .continue_loop;
}
+ if (std.mem.eql(u8, cmd_name, "cd")) {
+ try builtins.executeCd(stdout, args);
+ return .continue_loop;
+ }
+
if (std.mem.eql(u8, cmd_name, "type")) {
try builtins.executeType(allocator, stdout, args);
return .continue_loop;