From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26129 invoked by alias); 30 Aug 2013 17:10:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17961 Received: (qmail 2100 invoked from network); 30 Aug 2013 17:10:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130830101018.ZM26161@torch.brasslantern.com> Date: Fri, 30 Aug 2013 10:10:18 -0700 In-reply-to: <20130830092933.25d4cd24@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: mailcap configuration in zsh can't open .bk files" (Aug 30, 9:29am) References: <20130830025918.GA35749@redoubt.spodhuis.org> <20130830092933.25d4cd24@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: mailcap configuration in zsh can't open .bk files MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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 Quote from the doc: ... Alternatively, if no handling for .gz on its own is needed, simply adding the command alias -s gz=zsh-mime-handler to the initialisation code is sufficient; .gz will not be handled on its own, but may be in combination with other suffixes. Is this not accurate, or am I misinterpreting it somehow?