diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-01 00:48:48 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-01 00:48:48 +0000 |
| commit | b550c6bb3a0344ba33a00fce126ca571228e3651 (patch) | |
| tree | d3552413822c08e24ff82e0c7420e7573ef50249 /src/command/builtin.cc | |
| parent | 5e94ca9f060d2952ef08913234c500a815f734bf (diff) | |
refactor
Diffstat (limited to 'src/command/builtin.cc')
| -rw-r--r-- | src/command/builtin.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/builtin.cc b/src/command/builtin.cc index b2c3149..3e87850 100644 --- a/src/command/builtin.cc +++ b/src/command/builtin.cc @@ -15,6 +15,10 @@ bool exe_bultin_command(char **argv) { if (argv == nullptr || argv[0] == nullptr) exit(1); // WTF??? if (strcmp(argv[0], "quit") == 0) { ov4::command::quit(); return true; } + if (strcmp(argv[0], "exit") == 0) { ov4::command::exit(); return true; } + if (strcmp(argv[0], "jobs") == 0) { ov4::command::jobs(); return true; } + if (strcmp(argv[0], "bg") == 0) { ov4::command::bg(argv); return true; } + if (strcmp(argv[0], "fg") == 0) { ov4::command::fg(argv); return true; } else return false; } |
