also save less in .cache/

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2025-02-16 09:32:31 -06:00
parent ae8c1c9680
commit 3b32acd06f
1 changed files with 5 additions and 2 deletions

View File

@ -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