dotfiles/.bin/dev-dirs

22 lines
540 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/bin/sh
cd /usr/ports
[ ! -z "$1" ] && EXTRA="-q $1"
_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
echo "$_list\n/usr/src\n/usr/ports\n/usr/www\n/usr/xenocara" \
| fzf $EXTRA -e -i -0 -1 --preview "tree {1}"