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.
This commit is contained in:
Bruno Pinto 2015-08-28 13:05:10 +01:00
parent 251a77afc0
commit 2222db74d8

View File

@ -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