Hides another variable.

This commit is contained in:
LFDM 2014-01-04 23:42:29 +01:00
commit 1eb75d9c31

View file

@ -69,9 +69,12 @@ _source_zsh_theme() {
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$theme_name' loaded..."
elif [ ! "$ZSH_THEME" = "" ]; then
local theme_path
local zsh_path
# custom themes take precedence over built-in themes!
for zsh_path in $ZSH_CUSTOM $ZSH; do
local theme_path="themes/$ZSH_THEME.zsh-theme"
theme_path="themes/$ZSH_THEME.zsh-theme"
if [ -f "$zsh_path/$theme_path" ]; then
source "$zsh_path/$theme_path"
break