#!/bin/sh

cd /usr/ports

_ports=$(find \
            * \
            mystuff/* \
            openbsd-wip/* \
                -type d \
                -maxdepth 1 \
            | grep -v  -E distfiles\|pobj\|plist\|CVS\|.git)

print "$_ports" \
            | fzf -e -i -0 -1 +s \
                --query "$1" \
                --preview='portinfo {}'

