Skip to content

Commit

Permalink
include the stub for bash_complete in this repo; it must be copied to…
Browse files Browse the repository at this point in the history
… /etc/bash_completion.d to work properly
  • Loading branch information
Daniel Bradberry committed Sep 8, 2013
1 parent 7b15b98 commit 0abd753
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/bash_complete
@@ -0,0 +1,15 @@
# bash_complete rules for drozer

_drozer()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

opts=`drozer-complete ${COMP_WORDS[@]} $COMP_CWORD 2> /dev/null`

COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _drozer drozer

0 comments on commit 0abd753

Please sign in to comment.