* Introduce .zprezto.before and .zprezto.after conventions * If .zprezto.before exists, its .zsh files are sourced before Prezto is initialized * If .zprezto.after exists, its .zsh files are sourced after Prezto is initialized * .zprezto.before files are for customizing Prezto such as calling zstyle * .zprezto.after files are for general ZSH customization outside the scope of Prezto
21 lines
514 B
Bash
21 lines
514 B
Bash
#
|
|
# Executes commands at the start of an interactive session.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Prezto customizations...
|
|
for before_prezto in "${ZDOTDIR:-$HOME}"/.zprezto.before/*.zsh; do
|
|
source "$before_prezto"
|
|
done
|
|
|
|
# Source Prezto.
|
|
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
|
fi
|
|
|
|
# Your zsh customizations outside of Prezto...
|
|
for after_prezto in "${ZDOTDIR:-$HOME}"/.zprezto.after/*.zsh; do
|
|
source "$after_prezto"
|
|
done
|