diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-23 16:15:01 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2023-03-29 03:39:09 +0330 |
commit | d01ac59b824244c9927673258f7da522d153e932 (patch) | |
tree | 7bd7016ae4012c7ae4ea93184524c3d4d518a259 /Userland | |
parent | 9a6b5a53a7aa2f3ae120407ab79f80a92aa9bc3f (diff) | |
download | serenity-d01ac59b824244c9927673258f7da522d153e932.zip |
Shell: Skip rc files when not running interactively
This makes debugging a bit nicer.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Shell/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Shell/main.cpp b/Userland/Shell/main.cpp index 77101d49f9..7c2f52ae2e 100644 --- a/Userland/Shell/main.cpp +++ b/Userland/Shell/main.cpp @@ -186,6 +186,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) parser.set_stop_on_first_non_option(true); parser.parse(arguments); + if (!file_to_read_from.is_null()) + skip_rc_files = true; + if (!format.is_empty()) { auto file = TRY(Core::DeprecatedFile::open(format, Core::OpenMode::ReadOnly)); |