dotfiles/.bin/port-jump
2024-12-13 08:54:27 +01:00

19 lines
525 B
Bash
Executable File

#!/bin/sh
find /usr/ports/ \
-not \( -path "/usr/ports/pobj" -prune \
-o -path "*/distfiles" -prune \
-o -path "*/packages" -prune \
-o -path "*/logs" -prune \
-o -path "*/CVS" -prune \
-o -path "*/pkg" -prune \
-o -path "*/patches" -prune \
-o -path "*/files" -prune \
-o -path "*/openbsd-wip" -prune \
-o -path "*/mystuff" -prune \
-o -path "*/.git" -prune \
\) \
-maxdepth 4 \
-type d \
-iname "*$1*"