[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:
parent
16aa48baeb
commit
1ef4578cce
1 changed files with 9 additions and 2 deletions
|
@ -5,10 +5,17 @@
|
||||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Prezto customizations...
|
||||||
|
for before_prezto in "${ZDOTDIR:-$HOME}"/.zprezto.before/*.zsh; do
|
||||||
|
source "$before_prezto"
|
||||||
|
done
|
||||||
|
|
||||||
# Source Prezto.
|
# Source Prezto.
|
||||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue