Skip to content

Commit

Permalink
bash/complete updated
Browse files Browse the repository at this point in the history
  • Loading branch information
robin committed Jun 22, 2008
1 parent c4c63cc commit 7341ff6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bash/complete.yml
@@ -0,0 +1,22 @@
---
bash::complete: |+
# mategem. complete with installed gem directories
_mategem()
{
local curw
COMPREPLY=()
curw=${COMP_WORDS[COMP_CWORD]}
local gems="$(gem environment gemdir)/gems"
COMPREPLY=($(compgen -W '$(ls $gems)' -- $curw));
return 0
}
complete -F _mategem -o dirnames mategem

# chit
_chit()
{
COMPREPLY=($(compgen -W '$(chit all)' -- ${COMP_WORDS[COMP_CWORD]}));
return 0
}
complete -F _chit chit

0 comments on commit 7341ff6

Please sign in to comment.