dotfiles/.bin/portjump

24 lines
381 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)
print "$_ports" \
| fzf -e -i -0 -1 +s \
--query "$1" \
--preview='portinfo {}'