zsh-users
 help / color / mirror / code / Atom feed
* echo-ing case insensitively
@ 2003-02-12 22:59 Eric Smith
  2003-02-13  4:59 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Smith @ 2003-02-12 22:59 UTC (permalink / raw)
  To: Zsh Users

I do not use directories much - I prefer underscores in filenames.
The following serves me well (with most of my data in a single dir):
se () {
        if [ $2 ]
        then
                echo $1/*$2* | sed -e 's/ /\
/g'
        else
                echo *$1* | sed -e 's/ /\
/g'
        fi
}

What I want to do though is give this function an argument like
say - `draft' and I want to see:
today_draft
Draft.mail
some_other_DRAFT

(Breaking mailing-list convention with a followup question)

I want to type `draft' at the prompt and press <tab> and then
get all the options above to show as possible expansions.

How?

Thanks.

-- 
Eric Smith


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

end of thread, other threads:[~2003-02-23  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-12 22:59 echo-ing case insensitively Eric Smith
2003-02-13  4:59 ` Bart Schaefer
2003-02-13 14:57   ` Eric Smith
2003-02-23  1:47     ` Bart Schaefer

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