Загрузка скриптов pre и post

This commit is contained in:
Andrei Astafev 2021-11-06 20:29:19 +03:00
parent 22197ae61a
commit 026199797d
2 changed files with 8 additions and 3 deletions

5
.gitignore vendored
View File

@ -1,4 +1,5 @@
.zcompdump*
keychain-config.zsh
*.user.zsh
*.start.zsh
*.post.zsh
*.pre.zsh
*.zwc

6
.zshrc
View File

@ -11,8 +11,12 @@ for S in \
85-compinit \
95-finish
do
[ -e "$ZDOTDIR/$S.zsh" ] && source "$ZDOTDIR/$S.zsh"
N="${S//[0-9\-]/}"
[ -e "$ZDOTDIR/$S.pre.zsh" ] && source "$ZDOTDIR/$S.pre.zsh"
[ -e "$ZDOTDIR/$S.zsh" ] && source "$ZDOTDIR/$S.zsh"
[ -e "$ZDOTDIR/$S.user.zsh" ] && source "$ZDOTDIR/$S.user.zsh"
[ -e "$ZDOTDIR/$N.user.zsh" ] && source "$ZDOTDIR/$N.user.zsh"
[ -e "$ZDOTDIR/$S.post.zsh" ] && source "$ZDOTDIR/$S.post.zsh"
done
true