add some xdg settings

This commit is contained in:
crater2150 2024-07-16 01:02:58 +02:00
parent 2cceb7b489
commit c8c6e801f8
5 changed files with 30 additions and 1 deletions

8
zshrc
View file

@ -1,6 +1,12 @@
typeset -U path
HISTFILE=~/.histfile
HISTFILE=${XDG_STATE_HOME:-$HOME/.local/state}/zsh/histfile
if [[ ! -d ${HISTFILE:h} ]]; then
mkdir -p ${HISTFILE:h}
fi
if [[ ! -e $HISTFILE && -e ~/.histfile ]]; then
mv ~/.histfile $HISTFILE
fi
HISTSIZE=100000
SAVEHIST=100000
unsetopt histsavenodups