From: Clint Adams <clint@zsh.org>
To: Dominic Mitchell <dom@happygiraffe.net>
Cc: Zsh User <zsh-users@sunsite.dk>
Subject: Re: rake completion
Date: Fri, 10 Mar 2006 10:13:23 -0500 [thread overview]
Message-ID: <20060310151323.GA3593@scowler.net> (raw)
In-Reply-To: <20060309235749.GA80406@gimli.happygiraffe.net>
> If you're using Rails, this completion for the rake command might come
> in handy:
>
> http://weblog.rubyonrails.com/articles/2006/03/09/fast-rake-task-completion-for-zsh
That could be rewritten to something like the following, but we already
distribute a rake completion function. It would probably be better to
modify that to add caching-layer support and address any other
deficiencies rake users might point out.
#compdef rake
if [[ -f Rakefile ]]; then
if [[ ! -f .rake_tasks ]] || [[ .rake_tasks -ot Rakefile ]]; then
print ${${(f)"$(rake --silent --tasks)"}#* } > .rake_tasks
fi
compadd $(cat .rake_tasks)
fi
prev parent reply other threads:[~2006-03-11 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-09 23:57 Dominic Mitchell
2006-03-10 15:13 ` Clint Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060310151323.GA3593@scowler.net \
--to=clint@zsh.org \
--cc=dom@happygiraffe.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).