Move zplug into $XDG_CACHE_HOME (everything it stores can be refetched)

The only exception is that ZPLUG_LOADFILE, which by default lives in
ZPLUG_HOME, is a configuration file. I don't use it yet but might soon;
fortunately it can be reconfigured to live somewhere else such as in
$XDG_CONFIG_HOME.
This commit is contained in:
Danielle McLean 2016-10-06 09:40:18 +11:00
parent 1cb0d74a1e
commit 8c086193e6

View file

@ -1,8 +1,9 @@
#! zsh
if [[ ! -f ~/.zplug/repos/zplug/zplug/init.zsh ]]; then
git clone https://github.com/zplug/zplug ~/.zplug/repos/zplug/zplug
export ZPLUG_HOME=$XDG_CACHE_HOME/zplug
if [[ ! -f $ZPLUG_HOME/repos/zplug/zplug/init.zsh ]]; then
git clone https://github.com/zplug/zplug $ZPLUG_HOME/repos/zplug/zplug
fi
source ~/.zplug/repos/zplug/zplug/init.zsh
source $ZPLUG_HOME/repos/zplug/zplug/init.zsh
zplug zplug/zplug
zplug willghatch/zsh-saneopt