Better resilience to missing components, have zplug handle loading of ~/.zsh/interactive scripts

This commit is contained in:
Danielle McLean 2016-10-02 19:13:42 +11:00
parent df6164e3aa
commit b825210c29
No known key found for this signature in database
GPG key ID: CC91589719027E94
4 changed files with 6 additions and 5 deletions

View file

@ -1 +1 @@
for f in ~/.zsh/login/*; source $f
for f in ~/.zsh/login/*(-.N); source $f

View file

@ -2,7 +2,7 @@
if [[ ! -f ~/.zplug/repos/zplug/zplug/init.zsh ]]; then
git clone https://github.com/zplug/zplug ~/.zplug/repos/zplug/zplug
fi
source ~/.zplug/repos/zplug/zplug/init.zsh
source ~/.zplug/repos/zplug/zplug/init.zsh
zplug zplug/zplug
zplug willghatch/zsh-saneopt
@ -22,5 +22,6 @@ apply-trapd00r-colors() {
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
}
zplug ~/.zsh/interactive/\*, from:local
zplug check || zplug install
zplug load

View file

@ -1 +1 @@
for f in ~/.zsh/all/*; source $f
for f in ~/.zsh/all/*(-.N); source $f

View file

@ -1,2 +1,2 @@
for f in ~/.zsh/interactive/*; source $f
[[ -o login ]] && for f in ~/.zsh/interactive+login/*; source $f
source ~/.zsh/zplug
[[ -o login ]] && for f in ~/.zsh/interactive+login/*(-.N); source $f