diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-13 18:31:23 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-13 18:31:23 +0100 |
commit | 512b772ae9e17aca486e382b3e62c4e70909ad70 (patch) | |
tree | 6d89e8c3326cd4fcaf565a433ed2497e99b8d138 /include/mimetypes | |
parent | d60fd694fc2090e0d99d5a64857af7bd4e19876b (diff) |
Fixed mimetype helper
Diffstat (limited to 'include/mimetypes')
-rwxr-xr-x | include/mimetypes | 2 |
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}) |