repo.or.cz
/
llpp.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Safety net
[llpp.git]
/
misc
/
dllpp
blob
1c112c6cf1c9bc2966330a1a1463399dc95dd056
1
#!/bin/sh
2
set -e
3
4
test -z
"
$1
"
&& {
5
echo
"usage:
$0
file_extension"
6
exit
1
7
}
8
9
getpath
() {
10
locate
-e -0 -r
'\.'
$1
'$'
\
11
| du
-bh --files0-from
=-
\
12
|
sort
-h -k1
| cut
--output-delimiter
=:
-f1
,
2
-
\
13
| dmenu
-nf
white
-l
40
| cut
-d
:
-f2-
||
exit
1
14
}
15
16
exec
llppac
"$(getpath "
$1
")"