23 lines
386 B
Bash
Executable File
23 lines
386 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z $1 ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
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 {}'
|
|
|