mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07: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:
parent
e799da1fb6
commit
2b4b9d212e
3 changed files with 23 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue