summaryrefslogtreecommitdiff
path: root/include/mimetypes
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-13 18:31:23 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-13 18:31:23 +0100
commit512b772ae9e17aca486e382b3e62c4e70909ad70 (patch)
tree6d89e8c3326cd4fcaf565a433ed2497e99b8d138 /include/mimetypes
parentd60fd694fc2090e0d99d5a64857af7bd4e19876b (diff)
Fixed mimetype helper
Diffstat (limited to 'include/mimetypes')
-rwxr-xr-xinclude/mimetypes2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimetypes b/include/mimetypes
index d20f9c8..425d2b5 100755
--- a/include/mimetypes
+++ b/include/mimetypes
@@ -1,6 +1,6 @@
#!/usr/bin/env zsh
typeset -a audio video image
-. etc/mime-setup
+eval $(perl -ne 'if (/^mime_\w+\=\(/ or $found == 1) { $found = 1; print } if (/^\)/ and $found == 1) {$found = 0}' ~/.zshrc)
while read mime extensions; do
[[ $mime == audio/* ]] && audio+=(${(s/ /)extensions})