1
0
Fork 0
dotfiles/zsh/functions/_rake

9 lines
235 B
Plaintext
Raw Normal View History

2013-01-19 13:18:29 +00:00
#compdef rake
if [ -f Rakefile ]; then
recent=`last_modified .rake_tasks~ Rakefile **/*.rake`
if [[ $recent != '.rake_tasks~' ]]; then
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
fi
compadd `cat .rake_tasks~`
fi