Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mailcap configuration in zsh can't open .bk files
- X-seq: zsh-users 17962
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: mailcap configuration in zsh can't open .bk files
- Date: Sun, 01 Sep 2013 18:11:14 +0100
- In-reply-to: Message from Bart Schaefer <schaefer@brasslantern.com> of "Fri, 30 Aug 2013 10:10:18 PDT." <130830101018.ZM26161@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Aug 30, 9:29am, Peter Stephenson wrote:
> }
> } Hmm... the zsh-mime-setup script is smart enough to get this right if
> } you specify pdf.bk in ~/.mime.types, e.g.
> }
> } application/pdf pdf pdf.bk
> }
> } but unfortunately the main shell isn't: given the suffix alias pdf.bk,
> } it only looks for the .bk suffix, so the MIME handler isn't started.
>
> The documentation would imply that it is therefore sufficient to put the
> pdf.pk rule in ~/.mime.types, run zsh-mime-setup, and then add
>
> alias -s bk=zsh-mime-handler
That should work, too, since zsh-mime-handler doesn't care how it gets
started, only the file name passed to it; what won't work is leaving it
to zsh-mime-setup which will only add the alias for pdf.bk.
I guess alternatively we could make it add a suffix alias for bk if
there isn't one.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author