diff --git a/bashrc b/bashrc index d8ce5ed..a7fe995 100644 --- a/bashrc +++ b/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' \