Skip to content

Commit

Permalink
Merge pull request ohmyzsh#688 from alexstrat/master
Browse files Browse the repository at this point in the history
Plugin : autocomplete for Jake
  • Loading branch information
robbyrussell committed Dec 26, 2011
2 parents ae3f5e4 + 31badac commit 359fe53
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/jake-node/jake-node.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#---oh-my-zsh plugin : task Autocomplete for Jake tool---
# Jake : https://github.com/mde/jake
# Warning : Jakefile should have the right case : Jakefile or jakefile
# Tested on : MacOSX 10.7 (Lion), Ubuntu 11.10
# Author : Alexandre Lacheze (@al3xstrat)
# Inspiration : http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh

function _jake () {
if [ -f Jakefile ]||[ -f jakefile ]; then
compadd `jake -T | cut -d " " -f 2 | sed -E "s/.\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"`
fi
}

compdef _jake jake

0 comments on commit 359fe53

Please sign in to comment.