oh-my-fish/pkg/omf/functions/cli/omf.cli.install.fish
Stephen M. Coakley 016ea34a9b oops (#470)
2017-01-06 17:15:36 -06:00

25 lines
507 B
Fish

function omf.cli.install
set fail_count 0
switch (count $argv)
case 0
omf.bundle.install;
or set fail_count 1
case '*'
for package in $argv
omf.packages.install $package;
and require $package
# If package is a theme, set it to active.
if contains "$package" (omf.packages.list --installed --theme)
omf.theme.set "$package"
end
test $status != 0;
and set fail_count (math $fail_count + 1)
end
end
return $fail_count
end