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:
parent
1cb0d74a1e
commit
8c086193e6
1 changed files with 4 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
||||||
#! zsh
|
#! zsh
|
||||||
if [[ ! -f ~/.zplug/repos/zplug/zplug/init.zsh ]]; then
|
export ZPLUG_HOME=$XDG_CACHE_HOME/zplug
|
||||||
git clone https://github.com/zplug/zplug ~/.zplug/repos/zplug/zplug
|
if [[ ! -f $ZPLUG_HOME/repos/zplug/zplug/init.zsh ]]; then
|
||||||
|
git clone https://github.com/zplug/zplug $ZPLUG_HOME/repos/zplug/zplug
|
||||||
fi
|
fi
|
||||||
source ~/.zplug/repos/zplug/zplug/init.zsh
|
source $ZPLUG_HOME/repos/zplug/zplug/init.zsh
|
||||||
zplug zplug/zplug
|
zplug zplug/zplug
|
||||||
zplug willghatch/zsh-saneopt
|
zplug willghatch/zsh-saneopt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue