zsh-users
 help / color / mirror / code / Atom feed
* New Modifiers
@ 2007-05-28  3:15 fREW
  2007-05-28  7:35 ` Nikolai Weibull
  0 siblings, 1 reply; 2+ messages in thread
From: fREW @ 2007-05-28  3:15 UTC (permalink / raw)
  To: Zsh users list

Is there a way to define new modifiers or does that require changing
the source code?

-- 
-fREW


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

* Re: New Modifiers
  2007-05-28  3:15 New Modifiers fREW
@ 2007-05-28  7:35 ` Nikolai Weibull
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolai Weibull @ 2007-05-28  7:35 UTC (permalink / raw)
  To: fREW; +Cc: Zsh users list

On 5/28/07, fREW <frioux@gmail.com> wrote:
> Is there a way to define new modifiers or does that require changing
> the source code?

Modifiers of what kind?  Command modifiers?  Glob modifiers?

Glob modifiers (two examples from the manual):

*(e:'reply=(${REPLY}{1,2})':)

nt() { [[ $REPLY -nt $NTREF ]] }
NTREF=reffile
ls -l *(+nt)

  nikolai


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

end of thread, other threads:[~2007-05-28  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-28  3:15 New Modifiers fREW
2007-05-28  7:35 ` Nikolai Weibull

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