Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias limg='ls *.{jpg,gif}(.N)'
- X-seq: zsh-users 9966
- From: Chris Johnson <cjohnson@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: alias limg='ls *.{jpg,gif}(.N)'
- Date: Tue, 28 Feb 2006 13:17:47 -0500
- In-reply-to: <Xns9778B72CAF0AFzzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9778B72CAF0AFzzappergmailcom@xxxxxxxxxxx>
zzapper sent me the following 0.2K:
> I was proud of my little alias
>
> alias limg='ls *.{jpg,gif}(.N)'
>
> But it has a teeny-weeny fault; if no image is found it lists everything
There was some discussion on this in 2004, in which print was suggested
as a replacement to ls. Try:
http://www.zsh.org/mla/users/2004/msg00621.html
--
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author