Permalink
Browse files

add bash completion script for git-vee

  • Loading branch information...
1 parent 377402d commit 1bd9dacd58719c4c5028ff42349dce0bd4708b17 @mjdominus committed Aug 11, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 bash_completion.d/git-vee
@@ -0,0 +1,9 @@
+_git_vee () {
+ local cword
+ _get_comp_words_by_ref -n =: cword
+# echo "# cur=$cur words=$words cword=$cword"
+ case $cword in
+ 2) __gitcomp "$(__git_remotes)" ;;
+ 3) __gitcomp "$(__git_heads)" ;;
+ esac
+}

0 comments on commit 1bd9dac

Please sign in to comment.