add some xdg settings
This commit is contained in:
parent
2cceb7b489
commit
c8c6e801f8
5 changed files with 30 additions and 1 deletions
8
zshrc
8
zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue