From e725e0b54b7c9d47e3a48f46fa55a461caf11d4d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 27 May 2022 15:59:55 +1200 Subject: Bump up shell history limits Stuff I want keeps disappearing off the buffer on more active computers. --- bash/bashrc | 4 ++-- sh/shrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index a60a047e..5d3a7bbc 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -28,8 +28,8 @@ fi # Clear away command_not_found_handle if a system bashrc file set it up unset -f command_not_found_handle -# Keep around 32K lines of history in file -HISTFILESIZE=32768 +# Keep around 128K lines of history in file +HISTFILESIZE=131072 # Ignore duplicate commands HISTCONTROL=ignoredups diff --git a/sh/shrc b/sh/shrc index 88601391..353120f5 100644 --- a/sh/shrc +++ b/sh/shrc @@ -4,8 +4,8 @@ command -p mesg n 2>/dev/null # Turn off flow control and control character echo command -p stty -ixon -ctlecho 2>/dev/null -# Keep around 4K lines of history in memory -HISTSIZE=4096 +# Keep around 16K lines of history in memory +HISTSIZE=16384 # If HOSTNAME isn't set by this shell, we'll do it if [ -z "$HOSTNAME" ] ; then -- cgit v1.2.3