Fix up .oh-my-zsh.zsh a bit here. OMZ should have be overrideable.

This commit is contained in:
Simon Gomizelj 2011-11-30 08:45:22 -05:00
commit 2c9e83a6dd

View file

@ -1,6 +1,6 @@
# Initializes Oh My Zsh
ZSH=${ZSH:-/usr/share/oh-my-zsh}
OMZ=$HOME/.zsh
OMZ=${OMZ:-$HOME/.omz}
local config_file plugin
plugin=${plugin:=()}
@ -16,7 +16,7 @@ fi
for config_file ($ZSH/lib/*.zsh(N))
source $config_file
if [[ -d ~/.omz ]]; then
if [[ -d $OMZ ]]; then
for config_file ($OMG/*.zsh(N))
source $config_file
fi
@ -24,7 +24,7 @@ fi
for plugin ($plugins)
fpath=($ZSH/plugins/$plugin $fpath)
if [[ -d ~/.omz ]]; then
if [[ -d $OMZ ]]; then
if [[ -d $OMZ/plugins ]]; then
for plugin ($plugins)
fpath=($OMZ/plugins/$plugin $fpath)