_rake 235 B

12345678
  1. #compdef rake
  2. if [ -f Rakefile ]; then
  3. recent=`last_modified .rake_tasks~ Rakefile **/*.rake`
  4. if [[ $recent != '.rake_tasks~' ]]; then
  5. rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
  6. fi
  7. compadd `cat .rake_tasks~`
  8. fi