oh-my-fish/pkg/omf/cli/omf.list_db_packages.fish

12 lines
320 B
Fish
Raw Normal View History

# List all packages available to install from the registry.
function omf.list_db_packages -a skip_installed
for item in (basename $OMF_PATH/db/pkg/*)
if begin
test -z $skip_installed
or not contains $item (basename {$OMF_PATH,$OMF_CONFIG}/pkg/*)
end
echo $item
end
end
end