Let --no-config imply private mode

This stops it from saving history.
This commit is contained in:
Fabian Homborg 2021-04-11 13:09:03 +02:00
parent 0420901cb2
commit 2416aa5337

View File

@ -336,6 +336,8 @@ static int fish_parse_opt(int argc, char **argv, fish_cmd_opts_t *opts) {
}
case 'N': {
opts->no_config = true;
// --no-config implies private mode, we won't be saving history
opts->enable_private_mode = true;
break;
}
case 'n': {