Simplify source globbing, now files all end in .zsh
This commit is contained in:
parent
12b335be77
commit
b3695c8471
4 changed files with 7 additions and 9 deletions
|
@ -1,2 +1,2 @@
|
|||
#! zsh
|
||||
for f in $ZDOTDIR/logout/^*.zwc(N); source $f
|
||||
for f in $ZDOTDIR/logout/*.zsh(N); source $f
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#! zsh
|
||||
for f in $ZDOTDIR/login/^*.zwc(N); source $f
|
||||
for f in $ZDOTDIR/login/*.zsh(N); source $f
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
setopt extended_glob
|
||||
for f in $ZDOTDIR/all/^*.zwc(N); do
|
||||
[[ ! -f $f.zwc ]] && zcompile $f
|
||||
source $f
|
||||
done
|
||||
#! zsh
|
||||
for f in $ZDOTDIR/all/*.zsh(N); source $f
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#! zsh
|
||||
# For accurate instant prompt from Powerlevel10k, we need to load up the
|
||||
# correct environment from direnv first.
|
||||
(( ${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
|
||||
|
@ -21,9 +22,9 @@ dot-zsh-compinit() {
|
|||
}
|
||||
|
||||
source $ZDOTDIR/plugins.zsh
|
||||
for f in $ZDOTDIR/interactive/^*.zwc(N); source $f
|
||||
for f in $ZDOTDIR/interactive/*.zsh(N); source $f
|
||||
|
||||
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/^*.zwc(N); source $f
|
||||
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*.zsh(N); source $f
|
||||
|
||||
export POWERLEVEL9K_CONFIG_FILE=${ZDOTDIR}/p10k.zsh
|
||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/p10k.zsh
|
||||
|
|
Loading…
Reference in a new issue