From 1ef4578cceafef6b1b7eec4c94ca3a9a2d857a5c Mon Sep 17 00:00:00 2001 From: "Simeon F. Willbanks" Date: Fri, 12 Jul 2013 18:57:09 -0700 Subject: [PATCH] [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 --- runcoms/zshrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index e87283fc..32b56fb5 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -5,10 +5,17 @@ # Sorin Ionescu # +# 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