Permalink
Browse files

Merge pull request #8 from proem/fix-composer

Fix composer.conf
  • Loading branch information...
2 parents 5be3f14 + d1bc850 commit b3ddad39997a5a5d9606ff6f11c8bb577b35a9b4 @jaz303 committed Apr 15, 2012
Showing with 23 additions and 1 deletion.
  1. +1 −1 composer.json
  2. +22 −0 phake_completion.sh
View
@@ -11,7 +11,7 @@
"email": "jason@onehackoranother.com"
}
],
- "bin": ["phake"],
+ "bin": ["bin/phake"],
"require": {
"php": ">=5.3.0"
}
View
@@ -0,0 +1,22 @@
+#!/bin/bash
+_phake()
+{
+ COMPREPLY=()
+
+ local cur prev
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+ local opts
+ opts=`phake -T | awk 'BEGIN {x=1}; $x>1 {print $1}'`
+ optscolon=${cur%"${cur##*:}"}
+
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}))
+
+ local i=${#COMPREPLY[*]}
+ while [ $((--i)) -ge 0 ]; do
+ COMPREPLY[$i]=${COMPREPLY[$i]#"$optscolon"}
+ done
+}
+
+complete -F _phake phake

0 comments on commit b3ddad3

Please sign in to comment.