Skip to content

Instantly share code, notes, and snippets.

@tpope
Created September 14, 2011 23:30
Show Gist options
  • Select an option

  • Save tpope/1218105 to your computer and use it in GitHub Desktop.

Select an option

Save tpope/1218105 to your computer and use it in GitHub Desktop.
Part of rake tab completion in zsh
targets=( ${${(f)"$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2>/dev/null)"}/(#b)rake ([^ ]##) ##\# (*)/${${match[1]}//:/\\:}:${match[2]:l}} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment