Put in $HOME/.bash_profile:_command() {local current=${COMP_WORDS[COMP_CWORD]}local tasks=`tsuru | egrep "^[ ]" | awk -F ' ' '{print $1}'`COMPREPLY=( $(compgen -W "$tasks" $current) )}complete -F _command tsuru
Gustavo,
We have a shameless bash-completion script [1]. Would you mind
contributing yours to us? :)
Please feel free to send a pull request.
[1] https://github.com/globocom/tsuru/tree/master/misc/bash-completion.d
Regards,
Francisco
>
> --
> You received this message because you are subscribed to the Google Groups
> "tsuru" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tsuru-users...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
~f