Only set default fish_function_path when --no-config is used

Otherwise config.fish will keep $fish_function_path.
This commit is contained in:
Fabian Homborg
2021-05-01 19:43:31 +02:00
parent 4fd8673772
commit b16e537b66
3 changed files with 8 additions and 6 deletions

View File

@@ -480,7 +480,7 @@ int main(int argc, char **argv) {
paths = determine_config_directory_paths(argv[0]);
}
if (!opts.no_exec) {
env_init(&paths, !opts.no_config);
env_init(&paths, /* do uvars */ !opts.no_config, /* default paths */ opts.no_config);
}
// Set features early in case other initialization depends on them.