zsh-users
 help / color / mirror / code / Atom feed
* 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
* 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

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-10 16:36 suffix alias problem Dieter Faulbaum
2011-11-11 18:39 ` Peter Stephenson
2011-11-14 13:09 Dieter Faulbaum

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).