Move rupa/z state file into $XDG_DATA_HOME instead of ~

This commit is contained in:
Danielle McLean 2016-10-06 09:27:00 +11:00
parent 8273e0ce15
commit 1cb0d74a1e
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#! zsh #! zsh
HISTFILE=$XDG_DATA_HOME/zsh/history HISTFILE=$XDG_DATA_HOME/zsh/history
mkdir -p ${HISTFILE:h}
HISTSIZE=50000 HISTSIZE=50000
SAVEHIST=$HISTSIZE SAVEHIST=$HISTSIZE

View file

@ -0,0 +1,3 @@
#! zsh
_Z_DATA=$XDG_DATA_HOME/z/z
mkdir -p ${_Z_DATA:h}