Use relative path instead of OMZ variable.

This commit is contained in:
Sorin Ionescu 2011-10-10 21:49:47 -04:00
parent 9d52ede9fd
commit 850eb8c637

View file

@ -7,10 +7,10 @@ fi
# Add functions to fpath. # Add functions to fpath.
fpath=( fpath=(
$OMZ/themes/*(/N) ${0:h}/themes/*(/N)
${plugins:+$OMZ/plugins/${^plugins}} ${plugins:+${0:h}/plugins/${^plugins}}
$OMZ/functions ${0:h}/functions
$OMZ/completions ${0:h}/completions
$fpath $fpath
) )
@ -18,21 +18,21 @@ fpath=(
autoload -Uz compinit && compinit -i autoload -Uz compinit && compinit -i
# Source files (the order matters). # Source files (the order matters).
source "$OMZ/helper.zsh" source "${0:h}/helper.zsh"
source "$OMZ/environment.zsh" source "${0:h}/environment.zsh"
source "$OMZ/terminal.zsh" source "${0:h}/terminal.zsh"
source "$OMZ/keyboard.zsh" source "${0:h}/keyboard.zsh"
source "$OMZ/completion.zsh" source "${0:h}/completion.zsh"
source "$OMZ/history.zsh" source "${0:h}/history.zsh"
source "$OMZ/directory.zsh" source "${0:h}/directory.zsh"
source "$OMZ/alias.zsh" source "${0:h}/alias.zsh"
source "$OMZ/spectrum.zsh" source "${0:h}/spectrum.zsh"
source "$OMZ/utility.zsh" source "${0:h}/utility.zsh"
# Source plugins defined in ~/.zshrc. # Source plugins defined in ~/.zshrc.
for plugin in $plugins; do for plugin in $plugins; do
if [[ -f "$OMZ/plugins/$plugin/init.zsh" ]]; then if [[ -f "${0:h}/plugins/$plugin/init.zsh" ]]; then
source "$OMZ/plugins/$plugin/init.zsh" source "${0:h}/plugins/$plugin/init.zsh"
fi fi
done done
unset plugin unset plugin