From 2416aa53377cda48ad24501f5e9c3b6d134d8a2a Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 11 Apr 2021 13:09:03 +0200 Subject: [PATCH] Let --no-config imply private mode This stops it from saving history. --- src/fish.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fish.cpp b/src/fish.cpp index a28ef1a9d..a990d345e 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -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': {