summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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})