From 2c9e83a6dd80f3f414de3a2d98ccfed170d8c44f Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Wed, 30 Nov 2011 08:45:22 -0500 Subject: [PATCH] Fix up .oh-my-zsh.zsh a bit here. OMZ should have be overrideable. --- oh-my-zsh.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index eb5681f32..7382c88ef 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -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)