From 3b32acd06f80f8c3831accac2d20e7c8f0f838ca Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 16 Feb 2025 09:32:31 -0600 Subject: [PATCH] also save less in .cache/ Signed-off-by: Jeff Carr --- bashrc/.wit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bashrc/.wit b/bashrc/.wit index a8cbfa8..1d29a49 100644 --- a/bashrc/.wit +++ b/bashrc/.wit @@ -19,8 +19,8 @@ fi # Set Bash history file location to ~/.cache/bash_history export HISTFILE=~/.cache/bash_history -# Ensure ~/.cache/ exists -mkdir -p ~/.cache +# Set LESSHISTFILE to ~/.cache/.lesshst +export LESSHISTFILE=~/.cache/.lesshst # Set history size (optional, customize as needed) export HISTSIZE=10000 @@ -29,6 +29,9 @@ export HISTFILESIZE=20000 # Avoid duplicate entries in history export HISTCONTROL=ignoredups:erasedups +# Ensure ~/.cache/ exists +mkdir -p ~/.cache + export WIT_BASH=true export WIT_USER=$LC_USER if [ "x$WIT_USER" == "x" ]; then