mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-06 23:53:02 +08:00
omf.cli.install: Set theme when installed from URL
Co-authored-by: Fabian Homborg <FHomborg@gmail.com>
This commit is contained in:
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…
Reference in New Issue
Block a user