From 466bd34e44679455831143d66a9dbd9c1094ad68 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 28 May 2012 09:31:27 -0400 Subject: Use evince as a default PDF viewer --- .mailcap | 4 ++++ .zshrc | 1 + 2 files changed, 5 insertions(+) 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 -- cgit v1.2.3