dotfiles/.bin/portjump

24 lines
381 B
Plaintext
Raw Normal View History

2023-01-21 13:55:09 +01:00
#!/bin/sh
if [ -z $1 ]
then
exit 0
fi
cd /usr/ports
2023-01-21 13:55:09 +01:00
_ports=$(find \
* \
mystuff/* \
openbsd-wip/* \
-type d \
-maxdepth 1 \
| grep -v -E distfiles\|pobj\|plist\|CVS)
2023-01-21 13:55:09 +01:00
print "$_ports" \
2023-01-21 13:55:09 +01:00
| fzf -e -i -0 -1 +s \
--query "$1" \
--preview='portinfo {}'