also save less in .cache/
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ae8c1c9680
commit
3b32acd06f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue