From 5acde315bdd733c8fe8b9c4a75dad0eafeaf9aca Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 25 Jan 2023 01:43:05 +0100 Subject: bash: save more history --- %HOME%/.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index e3d514d..628cec3 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -16,8 +16,9 @@ PS1="\[\e[1;35m\]\h\[\e[m\] \[\e[1;36m\]\W\[\e[m\] # \[$(tput sgr0)\]" # `echo "!)"` doesn't work otherwise (namely, in third-party scripts): set +o histexpand -# Don't store duplicate commands. export HISTCONTROL=ignoredups +export HISTFILESIZE=20000 +export HISTSIZE=20000 # Too many third-party scripts stop working w/ nounset enabled :-( #set -o nounset -- cgit v1.2.3