mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Shell: Read and evaluate an init file on start
This behaviour is overridable with the `--skip-init' flag. The default file is at '~/shell-init.sh'
This commit is contained in:
parent
3d6a035d0f
commit
bc3285abb0
Notes:
sideshowbarker
2024-07-19 05:09:30 +09:00
Author: https://github.com/alimpfard
Commit: bc3285abb0
Pull-request: https://github.com/SerenityOS/serenity/pull/2542
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
4 changed files with 38 additions and 12 deletions
|
@ -64,8 +64,11 @@ class Shell : public Core::Object {
|
|||
C_OBJECT(Shell);
|
||||
|
||||
public:
|
||||
constexpr static auto init_file_path = "~/shell-init.sh";
|
||||
|
||||
int run_command(const StringView&);
|
||||
RefPtr<Job> run_command(AST::Command&);
|
||||
bool run_file(const String&);
|
||||
bool run_builtin(int argc, const char** argv, int& retval);
|
||||
void block_on_job(RefPtr<Job>);
|
||||
String prompt() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue