zsh-users
 help / color / mirror / code / Atom feed
* Re: suffix alias problem
@ 2011-11-14 13:09 Dieter Faulbaum
  0 siblings, 0 replies; 3+ messages in thread
From: Dieter Faulbaum @ 2011-11-14 13:09 UTC (permalink / raw)
  To: zsh-users


It ought but doesn't.-)

If I put

zstyle ':mime:.pdf:' handler 'evince %s'
zstyle ':mime:.pdf.gz:' handler 'evince %s'

into my .zshrc (and "source" it) I get:
zsh: permission denied: the-pdf-file

If I use this line

alias -s gz=zsh-mime-handler

I get 

(eval):1: parse error near `&'

in my debian squeeze system with zsh version 4.3.10

--
Dieter Faulbaum


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: suffix alias problem
  2011-11-10 16:36 Dieter Faulbaum
@ 2011-11-11 18:39 ` Peter Stephenson
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2011-11-11 18:39 UTC (permalink / raw)
  To: zsh-users

On Thu, 10 Nov 2011 17:36:55 +0100
Dieter Faulbaum <Dieter.Faulbaum@helmholtz-berlin.de> wrote:
> is it possible that the zsh-mime-setup can use something like this:
> 
> zstyle ':mime:.pdf(|.gz):' handler 'evince %s'
> 
> because evince can gunzip files "on the fly"?

In principle it ought to be possible to do something like that, or 

zstyle ':mime:.pdf:' handler 'evince %s'
zstyle ':mime:.pdf.gz:' handler 'evince %s'

though the shell doesn't do a search for the longest suffix match at the
moment.  I'll try to remember to look into it.  You'd need to make sure
there is some rule to handle .gz files even so, or set up the suffix
alias by hand, to ensure zsh-mime-handler runs; alias -s
gz=zsh-mime-handler would be good enough.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* suffix alias problem
@ 2011-11-10 16:36 Dieter Faulbaum
  2011-11-11 18:39 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Dieter Faulbaum @ 2011-11-10 16:36 UTC (permalink / raw)
  To: zsh-users


hello,

is it possible that the zsh-mime-setup can use something like this:

zstyle ':mime:.pdf(|.gz):' handler 'evince %s'

because evince can gunzip files "on the fly"?

-- 
Dieter Faulbaum


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-14 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-14 13:09 suffix alias problem Dieter Faulbaum
  -- strict thread matches above, loose matches on Subject: below --
2011-11-10 16:36 Dieter Faulbaum
2011-11-11 18:39 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).