mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
Shell: Load a different rc file when in POSIX mode
This commit is contained in:
parent
832478ad0c
commit
d997b794fa
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/alimpfard
Commit: d997b794fa
Pull-request: https://github.com/SerenityOS/serenity/pull/17953
3 changed files with 48 additions and 2 deletions
|
@ -232,8 +232,13 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
shell->run_file(file_path, false);
|
||||
}
|
||||
};
|
||||
run_rc_file(Shell::Shell::global_init_file_path);
|
||||
run_rc_file(Shell::Shell::local_init_file_path);
|
||||
if (posix_mode) {
|
||||
run_rc_file(Shell::Shell::global_posix_init_file_path);
|
||||
run_rc_file(Shell::Shell::local_posix_init_file_path);
|
||||
} else {
|
||||
run_rc_file(Shell::Shell::global_init_file_path);
|
||||
run_rc_file(Shell::Shell::local_init_file_path);
|
||||
}
|
||||
shell->cache_path();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue