From 88774f800ec0abae16beec13891f972485705d57 Mon Sep 17 00:00:00 2001 From: Raphael 'kena' Poss Date: Thu, 22 Sep 2022 19:07:37 +0200 Subject: [PATCH] cli/sql: increase maxHistEntries In light of PR #88272, we don't need the limit to be as low as 1000. This commit increases it back to 10000, which is the common default in unix shells and the screen/tmux utilities. Release note: None --- pkg/cli/clisqlshell/sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/clisqlshell/sql.go b/pkg/cli/clisqlshell/sql.go index f3735355984c..cd98b1feb94f 100644 --- a/pkg/cli/clisqlshell/sql.go +++ b/pkg/cli/clisqlshell/sql.go @@ -2164,7 +2164,7 @@ func (c *cliState) configurePreShellDefaults( // anyone. We do prefer a limit however (as opposed to no limit at // all), to prevent abnormal situation where a history runs into // megabytes and starts slowing down the shell. - const maxHistEntries = 1000 + const maxHistEntries = 10000 c.ins.SetCompleter(c) if err := c.ins.UseHistory(maxHistEntries, true /*dedup*/); err != nil {