浏览代码

Shell: Skip rc files when not running interactively

This makes debugging a bit nicer.
Tim Schumacher 2 年之前
父节点
当前提交
d01ac59b82
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Userland/Shell/main.cpp

+ 3 - 0
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));