diff options
| author | Jeff Carr <[email protected]> | 2025-02-16 09:32:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-16 09:32:31 -0600 |
| commit | 3b32acd06f80f8c3831accac2d20e7c8f0f838ca (patch) | |
| tree | 50955a037bff0be2f72c8d47f92c8a3b36a6a5da | |
| parent | ae8c1c96801747677a1cc61535c81ba349016126 (diff) | |
also save less in .cache/
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | bashrc/.wit | 7 |
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 |
