From 1cb0d74a1e983a796fbf04135df290b486585645 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 6 Oct 2016 09:27:00 +1100 Subject: [PATCH] Move rupa/z state file into $XDG_DATA_HOME instead of ~ --- .config/zsh/interactive/history | 1 + .config/zsh/interactive/z | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .config/zsh/interactive/z diff --git a/.config/zsh/interactive/history b/.config/zsh/interactive/history index 8ad3ef0..e6aa6bb 100644 --- a/.config/zsh/interactive/history +++ b/.config/zsh/interactive/history @@ -1,5 +1,6 @@ #! zsh HISTFILE=$XDG_DATA_HOME/zsh/history +mkdir -p ${HISTFILE:h} HISTSIZE=50000 SAVEHIST=$HISTSIZE diff --git a/.config/zsh/interactive/z b/.config/zsh/interactive/z new file mode 100644 index 0000000..9ec9bb7 --- /dev/null +++ b/.config/zsh/interactive/z @@ -0,0 +1,3 @@ +#! zsh +_Z_DATA=$XDG_DATA_HOME/z/z +mkdir -p ${_Z_DATA:h}