aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.mailcap4
-rw-r--r--.zshrc1
2 files changed, 5 insertions, 0 deletions
diff --git a/.mailcap b/.mailcap
index 0135463..a8b171f 100644
--- a/.mailcap
+++ b/.mailcap
@@ -1,2 +1,6 @@
text/html; w3m %s; nametemplate=%s.html
text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput
+application/pdf; evince '%s'; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format
+application/x-pdf; evince '%s'; nametemplate=%s.pdf; test=test "$DISPLAY" != ""; description=Portable Document Format
+application/x-gzpdf; evince '%s'; nametemplate=%s.pdf.gz; test=test "$DISPLAY" != ""; description=Portable Document Format
+application/x-bzpdf; evince '%s'; nametemplate=%s.pdf.bz2; test=test "$DISPLAY" != ""; description=Portable Document Format
diff --git a/.zshrc b/.zshrc
index eb472c3..3b1aef7 100644
--- a/.zshrc
+++ b/.zshrc
@@ -59,6 +59,7 @@ export MANOPT="-L en"
export BTS_SENDMAIL_COMMAND="/usr/bin/msmtp"
export PYTHONSTARTUP=~/.pythonrc.py
export PAGER=less
+export PDFVIEWER=evince
export TEXMFHOME=/home/ryan/.texmf
export LESSCHARSET=utf-8 # Needed for cyrillic &c in less