Organizing zsh files

This commit is contained in:
Gregory Eremin
2013-04-25 20:23:31 +04:00
parent 3124a1c631
commit a6d50c675c
12 changed files with 16 additions and 6 deletions
+9
View File
@@ -0,0 +1,9 @@
#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