summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc/.wit7
1 files 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