diff options
| author | Jeff Carr <[email protected]> | 2025-02-16 09:27:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-16 09:27:19 -0600 |
| commit | ae8c1c96801747677a1cc61535c81ba349016126 (patch) | |
| tree | 877ae28f9cf73a06698c2f101fbaa631df29c5dc | |
| parent | 475c865902a7a87fd1c0462ec7531ba7783e9694 (diff) | |
move .bash_history to .cache/
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | bashrc/.wit | 13 |
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 |
