oh-my-fish/pkg/omf/cli/omf.list_db_packages.fish
Sheldon Els 633e52101b describe works on installed packages
also modified list_db_packages to return all packages by default, but with a
skip_installed to skip listing installed packages
2015-08-31 22:04:51 +02:00

12 lines
320 B
Fish

# 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