From 512b772ae9e17aca486e382b3e62c4e70909ad70 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Nov 2009 18:31:23 +0100 Subject: Fixed mimetype helper --- include/mimetypes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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}) -- cgit v1.2.3