Copied bash_completion.