From 8c086193e69a8b72b2a7a37b79920481fcec72f7 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 6 Oct 2016 09:40:18 +1100 Subject: [PATCH] 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. --- .config/zsh/zplug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/zsh/zplug b/.config/zsh/zplug index 8b062d3..54cabd3 100644 --- a/.config/zsh/zplug +++ b/.config/zsh/zplug @@ -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