move .bash_history to .cache/

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2025-02-16 09:27:19 -06:00
parent 475c865902
commit ae8c1c9680
1 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,19 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
# Set Bash history file location to ~/.cache/bash_history
export HISTFILE=~/.cache/bash_history
# Ensure ~/.cache/ exists
mkdir -p ~/.cache
# Set history size (optional, customize as needed)
export HISTSIZE=10000
export HISTFILESIZE=20000
# Avoid duplicate entries in history
export HISTCONTROL=ignoredups:erasedups
export WIT_BASH=true
export WIT_USER=$LC_USER
if [ "x$WIT_USER" == "x" ]; then