Move the history file to the data dir

This commit is contained in:
Rodolphe Bréard 2021-09-12 11:03:42 +02:00
parent 71b5995121
commit 4284406640
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
# create the missing directories # create the missing directories
[ ! -d "$HISTFILE_DIR" ] && mkdir -p "$HISTFILE_DIR"
[ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR" [ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR"
# transmission # transmission

View file

@ -2,7 +2,8 @@
export ZDOTDIR="$HOME/.config/zsh" export ZDOTDIR="$HOME/.config/zsh"
# History # History
export HISTFILE="$HOME/.config/zsh/.zsh_history" export HISTFILE_DIR="$HOME/.local/share/zsh/.zsh_history"
export HISTFILE="$HISTFILE_DIR/.zsh_history"
export HISTSIZE=5000 export HISTSIZE=5000
export SAVEHIST=100000 export SAVEHIST=100000