pdfsearch: search inside pdfs in curdir

This commit is contained in:
Frank Villaro-Dixon 2014-01-16 14:43:31 +01:00
parent 67eca21616
commit 3c1677ef83

8
bashrc
View file

@ -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' \