feat: add support for shell builtins to command completion
This commit is contained in:
@@ -130,3 +130,18 @@ int exec_external(const char* cmd, const char* args);
|
||||
// ---- Tab completion (tabcompletion.cpp) ----
|
||||
|
||||
int get_completions(char* string, char** array, int arrayMax);
|
||||
|
||||
// ---- Shell builtins ----
|
||||
|
||||
constexpr const char* shell_builtins[] = {
|
||||
"help",
|
||||
"ls",
|
||||
"cd",
|
||||
"pwd",
|
||||
"echo",
|
||||
"set",
|
||||
"unset",
|
||||
"true",
|
||||
"false",
|
||||
"exit"
|
||||
};
|
||||
Reference in New Issue
Block a user