Update 2022-12-07 23:28 OpenBSD/amd64

This commit is contained in:
c0dev0id 2022-12-07 23:28:47 +01:00
parent 14267ef1e0
commit 69f5eeedf8
1 changed files with 36 additions and 0 deletions

36
.bin/dev-src Executable file
View File

@ -0,0 +1,36 @@
#!/bin/sh
. ~/.bin/_config
cd "${DEVDIR}"
F=$(find * \
-not -path "*/CVS/*" \
-not -path "*/.git/*" \
-type f \
\( -name "*.c" \
-o -name "*.cc" \
-o -name "*.cpp" \
-o -name "*.h" \
-o -name "*.hh" \
-o -name "*.hpp" \
-o -name "*.pl" \
-o -name "*.awk" \
-o -name "*.sh" \
-o -name "*.mk" \
-o -name "*.in" \
-o -name "*conf" \
-o -name "*devs" \
-o -name "Makefile" \
-o -name "PLIST*" \
-o -name "DESCR*" \
-o -name ".gitignore" \
-o -name ".cvsignore" \
\) | fzf \
--exact \
--no-sort \
--preview-window=right:65% \
--preview='highlight -O ansi -O xterm256 --force {}' \
);
test -z "$F" \
|| vim "$F";