When you define an alias for a subcommand, bash completion doesn't work for it. To fix it:
- Install complete_alias
- Add the following to .bashrc:
source /usr/share/bash-complete-alias/complete_alias
- Then define the alias and enable completion for it, for example:
alias go="paths go"
complete -F _complete_alias go