Browse files

setup mime if files are available

  • Loading branch information...
1 parent 7c73533 commit 0ed796b90b16d0d4dcd8822a2b9fe67cca3cbfce @rsanders committed Jan 30, 2012
Showing with 26 additions and 0 deletions.
  1. +17 −0 conf.d/mailcap
  2. +9 −0 zsh/zshrc.d/mime.zsh
@@ -0,0 +1,17 @@
+application/pdf; open -a Preview %s; nametemplate=%s.pdf; copiousoutput
+application/*; /usr/bin/open %s
+audio/*; /usr/bin/open %s
+image/*; /usr/bin/open %s
+video/*; /usr/bin/open %s
+text/html; /usr/bin/open %s
+text/plain; /usr/local/bin/emacsclient %s
+#application/dvi; xdvi %s; nametemplate=%s.dvi; copiousoutput
+#image/*; open -a Preview %s; copiousoutput
+#text/html; midori -a %s; test=test -n "$DISPLAY"; nametemplate=%s.html
+#text/html; midori -a %s; test=test -n "$DISPLAY"; nametemplate=%s.html; copiousoutput
+#application/vnd.openxml; open -a 'Microsoft Excel' %s; nametemplate=%s.xlsx
+#application/msword; open -a 'Microsoft Word' %s; nametemplate=%s.doc
+#application/msword; open %s; nametemplate=%s.doc
+#application/msword; open %s; nametemplate=%s.docx
+#application/msword; open -a 'Microsoft Word' %s; nametemplate=%s.docx
@@ -0,0 +1,9 @@
+# setup mime types and auto-open for zsh
+# See
+zstyle :mime: mailcap ~/.mailcap /usr/local/etc/mailcap /etc/mailcap
+zstyle :mime: mime-types ~/.mime.types /usr/local/etc/mime.types /etc/apache2/mime.types /etc/mime.types
+autoload -U zsh-mime-setup

0 comments on commit 0ed796b

Please sign in to comment.