summaryrefslogtreecommitdiff
path: root/lib/rake_completion.zsh
diff options
context:
space:
mode:
authorDallas Reedy <code@dallasreedy.com>2010-05-07 10:21:27 -0700
committerDallas Reedy <code@dallasreedy.com>2010-05-07 10:21:27 -0700
commit74429549856521ea71fb4a3c9e6be0741f7c86f8 (patch)
tree85b9905066cb652ee607e84a926dfbb859b2f843 /lib/rake_completion.zsh
parentf9abe041e2b70217b0d2f5519a51a57854b49857 (diff)
parent7d036913c4476916fe8b0325ea9cd54266787021 (diff)
downloadzsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.tar.gz
zsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.tar.bz2
zsh-74429549856521ea71fb4a3c9e6be0741f7c86f8.zip
Merge remote branch 'robbyrussell/master'
Diffstat (limited to 'lib/rake_completion.zsh')
-rw-r--r--lib/rake_completion.zsh21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/rake_completion.zsh b/lib/rake_completion.zsh
index c425a625e..8336182d5 100644
--- a/lib/rake_completion.zsh
+++ b/lib/rake_completion.zsh
@@ -1,24 +1,3 @@
-_rake_does_task_list_need_generating () {
- if [ ! -f .rake_tasks~ ]; then return 0;
- else
- accurate=$(stat -f%m .rake_tasks~)
- changed=$(stat -f%m Rakefile)
- return $(expr $accurate '>=' $changed)
- fi
-}
-
-_rake () {
- if [ -f Rakefile ]; then
- if _rake_does_task_list_need_generating; then
- echo "\nGenerating .rake_tasks~..." > /dev/stderr
- rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
- fi
- compadd `cat .rake_tasks~`
- fi
-}
-
-compctl -K _rake rake
-
function _cap_does_task_list_need_generating () {
if [ ! -f .cap_tasks~ ]; then return 0;
else