1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Shell: highlight runnable commands

And display in red the command which will result in something like "no
command, or is directory" (inspired by the fish shell).
This commit is contained in:
Mathieu PATUREL 2020-08-03 10:04:27 +10:00 committed by Andreas Kling
parent e799da1fb6
commit 2b4b9d212e
3 changed files with 23 additions and 1 deletions

View file

@ -73,6 +73,7 @@ public:
constexpr static auto global_init_file_path = "/etc/shellrc";
int run_command(const StringView&);
bool is_runnable(const StringView&);
RefPtr<Job> run_command(const AST::Command&);
Vector<RefPtr<Job>> run_commands(Vector<AST::Command>&);
bool run_file(const String&, bool explicitly_invoked = true);