summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-16 09:27:19 -0600
committerJeff Carr <[email protected]>2025-02-16 09:27:19 -0600
commitae8c1c96801747677a1cc61535c81ba349016126 (patch)
tree877ae28f9cf73a06698c2f101fbaa631df29c5dc
parent475c865902a7a87fd1c0462ec7531ba7783e9694 (diff)
move .bash_history to .cache/
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--bashrc/.wit13
1 files changed, 13 insertions, 0 deletions
diff --git a/bashrc/.wit b/bashrc/.wit
index a20afbb..a8cbfa8 100644
--- a/bashrc/.wit
+++ b/bashrc/.wit
@@ -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