3
# experimental bzr bash completion
9
bzr help commands | grep '^ '
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 ) )