[Fix #456] Allow end user to customize Prezto and ZSH

* 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
This commit is contained in:
Simeon F. Willbanks 2013-07-12 18:57:09 -07:00
parent 16aa48baeb
commit 1ef4578cce

View file

@ -5,10 +5,17 @@
# 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
# Customize to your needs...
# Your zsh customizations outside of Prezto...
for after_prezto in "${ZDOTDIR:-$HOME}"/.zprezto.after/*.zsh; do
source "$after_prezto"
done