Commit d428b723 authored by Pablo Santiago Blum de Aguiar's avatar Pablo Santiago Blum de Aguiar Committed by Pablo Aguiar

omf.cli.install: Set theme when installed from URL

Co-authored-by: default avatarFabian Homborg <FHomborg@gmail.com>
parent 029a6751
......@@ -14,8 +14,11 @@ function omf.cli.install
and require $package
# If package is a theme, set it to active.
if contains -- $package (omf.packages.list --theme)
set -l themes (omf.packages.list --theme)
if contains -- $package $themes
omf.theme.set $package
else if set -l ind (contains -i -- (omf.packages.name $package) $themes)
omf.theme.set $themes[$ind]
end
test $status != 0;
......
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