Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
29
.bin/OLD/dev-portfiles
Executable file
29
.bin/OLD/dev-portfiles
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /usr/ports
|
||||
|
||||
F=$(find * \
|
||||
-type f \
|
||||
\( -name "Makefile" \
|
||||
-o -name "PLIST*" \
|
||||
-o -name "DESCR" \
|
||||
-o -name "distinfo" \
|
||||
-o -name "patch-*" \
|
||||
-o -name "README*" \
|
||||
-o -name "Makefile" \
|
||||
\) \
|
||||
-not -path "pobj/*" \
|
||||
-not -path "infrastructure/*" \
|
||||
-not -path "packages/*" \
|
||||
-not -path "plist/*" \
|
||||
-not -path "logs/*" \
|
||||
-not -path "CVS/*" \
|
||||
| fzf \
|
||||
--exact \
|
||||
--no-sort \
|
||||
--preview-window=right:65% \
|
||||
--preview='highlight -O ansi -O xterm256 --force {}' \
|
||||
);
|
||||
|
||||
test -z "$F" \
|
||||
|| vim "$F";
|
||||
Reference in New Issue
Block a user