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