Files
dotfiles/zsh/functions/_rake
T
Gregory Eremin f3123a736d Initial commit
2013-01-19 17:18:29 +04:00

9 lines
235 B
Plaintext

#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