| 2923 | } |
| 2924 | |
| 2925 | bool ShellState::ProcessDuckDBRC(const char *file) { |
| 2926 | string path; |
| 2927 | bool is_default = false; |
| 2928 | if (!file) { |
| 2929 | // use default .duckdbrc path |
| 2930 | path = ShellState::GetDefaultDuckDBRC(); |
| 2931 | if (path.empty()) { |
| 2932 | // could not find home directory - return |
| 2933 | PrintF(PrintOutput::STDERR, "-- warning: cannot find home directory;" |
| 2934 | " cannot read ~/.duckdbrc\n"); |
| 2935 | return true; |
| 2936 | } |
| 2937 | file = path.c_str(); |
| 2938 | is_default = true; |
| 2939 | } |
| 2940 | duckdb_rc_path = file; |
| 2941 | return ProcessFile(file, InputMode::DUCKDB_RC, is_default); |
| 2942 | } |
| 2943 | |
| 2944 | #ifdef HAVE_LINENOISE |
| 2945 | /* |
no test coverage detected