From 2222db74d8af8be207c820de82d5f54f692dc6cb Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Fri, 28 Aug 2015 13:05:10 +0100 Subject: [PATCH] Change theme when creating a new theme We already change the current directory to the theme dir, to make it easier for development, we also change the current theme. --- pkg/omf/cli/omf.new.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/omf/cli/omf.new.fish b/pkg/omf/cli/omf.new.fish index b0f303e..2b22619 100644 --- a/pkg/omf/cli/omf.new.fish +++ b/pkg/omf/cli/omf.new.fish @@ -27,6 +27,11 @@ function omf.new -a option name $github $user $name echo (omf::em)"Switched to $dir"(omf::off) + + if test "$option" = themes + omf.theme $name + refresh + end else echo (omf::err)"\$OMF_CONFIG and/or \$OMF_PATH undefined."(omf::off) 1^&2 exit $OMF_UNKNOWN_ERR