2023-02-22 08:31:38 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd /usr/ports
|
|
|
|
|
|
|
|
[ ! -z "$1" ] && EXTRA="-q $1"
|
|
|
|
|
2023-05-21 14:36:14 +02:00
|
|
|
_ports=$(find \
|
|
|
|
/usr/ports/* \
|
|
|
|
/usr/ports/mystuff/* \
|
|
|
|
/usr/ports/openbsd-wip/* \
|
2023-05-09 18:43:46 +02:00
|
|
|
-type d \
|
2023-05-21 14:36:14 +02:00
|
|
|
-maxdepth 1 \
|
2023-05-09 18:43:46 +02:00
|
|
|
| grep -v -E distfiles\|pobj\|plist\|CVS)
|
2023-02-22 08:31:38 +01:00
|
|
|
|
2023-09-05 12:55:13 +02:00
|
|
|
_sys=$(find /usr/src/*/* -type d -maxdepth 0 \
|
2023-05-21 14:36:14 +02:00
|
|
|
| grep -v -E distfiles\|pobj\|plist\|CVS)
|
|
|
|
|
|
|
|
_system=\
|
|
|
|
"/usr/src
|
|
|
|
/usr/src/sys
|
|
|
|
/usr/xenocara
|
|
|
|
/usr/www
|
|
|
|
/usr/ports"
|
|
|
|
|
|
|
|
echo "$_ports\n$_system\n$_sys" \
|
|
|
|
| sort -u | fzf $EXTRA -e -i -0 -1 --preview "cat {1}/Makefile"
|