3
# experimental bzr bash completion
9
bzr help commands | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]'
14
cur=${COMP_WORDS[COMP_CWORD]}
15
prev=${COMP_WORDS[COMP_CWORD-1]}
16
if [ $COMP_CWORD -eq 1 ]; then
17
COMPREPLY=( $( compgen -W "$(_bzr_commands)" $cur ) )
18
elif [ $COMP_CWORD -eq 2 ]; then
21
COMPREPLY=( $( compgen -W "$(_bzr_commands) commands" $cur ) )
27
complete -F _bzr -o default bzr