pdfsearch: search inside pdfs in curdir
This commit is contained in:
parent
67eca21616
commit
3c1677ef83
1 changed files with 8 additions and 0 deletions
8
bashrc
8
bashrc
|
@ -166,6 +166,14 @@ function cd #{{{
|
|||
}
|
||||
#}}}
|
||||
|
||||
function pdfsearch #{{{
|
||||
{
|
||||
for pdf in `find ./ -name "*.pdf"`; do
|
||||
pdftotext $pdf - | grep --color --with-filename --label="$pdf" "$1";
|
||||
done
|
||||
}
|
||||
#}}}
|
||||
|
||||
function man { #{{{
|
||||
env LESS_TERMCAP_mb=$'\E[01;31m' \
|
||||
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
|
||||
|
|
Loading…
Reference in a new issue