From 1234fac27fa313a15e56d7e34615cba4f269a968 Mon Sep 17 00:00:00 2001 From: James McGlashan Date: Tue, 6 Dec 2011 17:38:45 +1100 Subject: [PATCH] more consistaint --- omz | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/omz b/omz index a6e4a39eb..4ca3fbe9d 100644 --- a/omz +++ b/omz @@ -15,7 +15,7 @@ omz() { # add plugins to fpath for plugin ($plugins); do files=({$OMZ,$ZSH}/plugins/$plugin) - fpath+=$files[1] + fpath=($files[1] $fpath) done # Load and run compinit @@ -38,7 +38,8 @@ omz() { "theme") local theme zstyle -a :omz:style theme theme - set_theme ${2:-$theme} + [[ -f {$OMZ,$ZSH}/themes/$2.zsh-theme(N) ]] && theme=$2 || omz_log_msg "Theme: $2 not found." + set_theme $theme ;; *) echo "$0: invalid command $1" 2>&1