Commit 2222db74 authored by Bruno Pinto's avatar Bruno Pinto

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.
parent 251a77af
...@@ -27,6 +27,11 @@ function omf.new -a option name ...@@ -27,6 +27,11 @@ function omf.new -a option name
$github $user $name $github $user $name
echo (omf::em)"Switched to $dir"(omf::off) echo (omf::em)"Switched to $dir"(omf::off)
if test "$option" = themes
omf.theme $name
refresh
end
else else
echo (omf::err)"\$OMF_CONFIG and/or \$OMF_PATH undefined."(omf::off) 1^&2 echo (omf::err)"\$OMF_CONFIG and/or \$OMF_PATH undefined."(omf::off) 1^&2
exit $OMF_UNKNOWN_ERR exit $OMF_UNKNOWN_ERR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment