mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-11 07:10:29 +00:00
633e52101b
also modified list_db_packages to return all packages by default, but with a skip_installed to skip listing installed packages
12 lines
320 B
Fish
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
|