Fast rake autocompletion plugin for oh-my-zsh
This plugin is now bundled with oh-my-zsh and maintained by more competent people over there.
This script caches the output for later usage and significantly speeds it up.
It generates a file .rake_tasks in parallel to the Rakefile. It also checks the file modification dates to see if it needs to regenerate the cache file.
This is entirely based on this pull request by Ullrich Schäfer, which is inspired by this Ruby on Rails trick from 2006.
Think about that. 2006.
- Clone this repository in oh-my-zsh plugins directory:
cd ~/.oh-my-zsh/custom/plugins
git clone git://github.com/KevinBongart/rake-fast.git
- Add the plugin to your
.zshrc
:
plugins=(foo bar rake-fast)
- Source
~/.zshrc
to take changes into account:
source ~/.zshrc
You'll also want to add .rake_tasks
to your global .gitignore