move .bash_history to .cache/
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
475c865902
commit
ae8c1c9680
13
bashrc/.wit
13
bashrc/.wit
|
@ -16,6 +16,19 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
||||||
. /etc/bash_completion
|
. /etc/bash_completion
|
||||||
fi
|
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_BASH=true
|
||||||
export WIT_USER=$LC_USER
|
export WIT_USER=$LC_USER
|
||||||
if [ "x$WIT_USER" == "x" ]; then
|
if [ "x$WIT_USER" == "x" ]; then
|
||||||
|
|
Loading…
Reference in New Issue