Set up data for bash-completion (cherry picked from @swansontec).