From e84536c6aa68529e1264b57a887b8e068ad75c9a Mon Sep 17 00:00:00 2001 From: James McGlashan Date: Tue, 6 Dec 2011 17:26:01 +1100 Subject: [PATCH] Fixed some things in the last commit; and also made it possible to run sections of the omz init after the initial init. eg, omz plugins; omz theme my-custom-theme --- omz | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/omz b/omz index 740a412c8..a6e4a39eb 100644 --- a/omz +++ b/omz @@ -25,16 +25,20 @@ omz() { # load lib for config_file ({$ZSH/lib,$OMZ}/*.zsh(N)) source $config_file - + omz plugin + omz theme + ;; + "plugin") # load plugins for plugin ($plugins); do files=({$OMZ,$ZSH}/plugins/$plugin/$(basename $plugin).plugin.zsh(N)) source $files[1] || omz_log_msg "$plugin not found." done - + ;; + "theme") local theme zstyle -a :omz:style theme theme - set_theme $theme + set_theme ${2:-$theme} ;; *) echo "$0: invalid command $1" 2>&1