Update 2022-12-07 23:28 OpenBSD/amd64
This commit is contained in:
parent
14267ef1e0
commit
69f5eeedf8
36
.bin/dev-src
Executable file
36
.bin/dev-src
Executable 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";
|
Loading…
Reference in New Issue
Block a user