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