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

Co-authored-by: Fabian Homborg <FHomborg@gmail.com>
pull/894/head
Pablo Santiago Blum de Aguiar 3 years ago committed by Pablo Aguiar
parent 029a67518d
commit d428b723c8

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

Loading…
Cancel
Save