| 1 | [ -f "$ZDOTDIR/before_plugins.sh" ] && source "$ZDOTDIR/before_plugins.sh" |
| 2 | |
| 3 | # Load custom plugins |
| 4 | for plugin in ~/.config/zsh/custom-plugins/*.zsh; do |
| 5 | source "$plugin" |
| 6 | done |
| 7 | |
| 8 | # Set up antidote |
| 9 | source "$ZDOTDIR/.antidote/antidote.zsh" |
| 10 | antidote load ${ZDOTDIR:-$HOME}/zsh_plugins.txt |
| 11 | |
| 12 | # Setup completions |
| 13 | fpath=("${ZDOTDIR}/.zfunc" $fpath) |
| 14 | autoload -Uz compinit && compinit |
| 15 | |
| 16 | # Update checks and functions |
| 17 | source "$ZDOTDIR/update_functions.sh" |
| 18 | |
| 19 | # Add secret environment variables |
| 20 | [ -f "$ZDOTDIR/secrets.sh" ] && source "$ZDOTDIR/secrets.sh" |
| 21 | |
| 22 | # Post compinit setups. Good for overriding plugins. |
| 23 | [ -f "$ZDOTDIR/after_plugins.sh" ] && source "$ZDOTDIR"/after_plugins.sh |