From: Jani Nikula <jani@nikula.org>
To: Keith Amidon <camalot@picnicpark.org>,
Mark Walters <markwalters1009@gmail.com>,
notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: add mimetype completions to searches
Date: Sat, 22 Oct 2016 21:58:26 +0300 [thread overview]
Message-ID: <87a8dwyzvx.fsf@nikula.org> (raw)
In-Reply-To: <1477159723.20927.5.camel@picnicpark.org>
On Sat, 22 Oct 2016, Keith Amidon <camalot@picnicpark.org> wrote:
> On Sat, 2016-10-22 at 12:55 +0300, Jani Nikula wrote:
>> Any ideas how to get a list of mime types in shell, so I could do the
>> same in bash completion without hard-coding some limited list?
>
> Not sure if this is really what you're looking for, but on my archlinux
> system, the file /etc/mime.types is installed by a package called mime-
> types, which lists this gentoo package as its upstream:
>
> http://packages.gentoo.org/package/app-misc/mime-types
>
> It's pulled in as a dependency of installing firefox, so presumably
> some version of this is pretty ubiquitous on Linux systems.
Thanks. I did look at it before, but dismissed it because the package
doesn't seem to provide a tool for parsing the file. I ended up parsing
it using a sed one-liner [1]. Oh well.
BR,
Jani.
[1] id:1477162534-7814-1-git-send-email-jani@nikula.org
prev parent reply other threads:[~2016-10-22 19:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-27 9:26 [PATCH] emacs: add mimetype completions to searches Mark Walters
2016-09-27 11:31 ` David Bremner
2016-09-28 12:52 ` David Bremner
2016-10-09 12:09 ` David Bremner
2016-10-22 9:55 ` Jani Nikula
2016-10-22 18:08 ` Keith Amidon
2016-10-22 18:58 ` Jani Nikula [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8dwyzvx.fsf@nikula.org \
--to=jani@nikula.org \
--cc=camalot@picnicpark.org \
--cc=markwalters1009@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).