From ae8c8649345b85c05fe69c210fedbc1f7417ce76 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 19 May 2020 12:28:06 -0700 Subject: [PATCH] default history size to 100k (#1845) --- crates/nu-cli/src/cli.rs | 2 +- docs/commands/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index 30389ebc88..af3a557d90 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -572,7 +572,7 @@ pub async fn cli( let max_history_size = config::config(Tag::unknown())? .get("history_size") .map(|i| i.value.expect_int()) - .unwrap_or(100); + .unwrap_or(100_000); rl.set_max_history_size(max_history_size as usize); diff --git a/docs/commands/config.md b/docs/commands/config.md index e5cde459be..062e125730 100644 --- a/docs/commands/config.md +++ b/docs/commands/config.md @@ -37,7 +37,7 @@ Syntax: `config {flags}` | table_mode | "light" or other | enable lightweight or normal tables | | edit_mode | "vi" or "emacs" | changes line editing to "vi" or "emacs" mode | | key_timeout | integer (milliseconds) | vi: the delay to wait for a longer key sequence after ESC | -| history_size | integer | maximum entries that will be stored in history (100 default) | +| history_size | integer | maximum entries that will be stored in history (100,000 default) | | completion_mode | "circular" or "list" | changes completion type to "circular" (default) or "list" mode | | no_auto_pivot | boolean | whether or not to automatically pivot single-row results |