I've been playing with bash completion for the nimrod compiler, see the file at https://gist.github.com/gradha/11325250. You can source that somewhere into your environment. Documentation says you can add it to your ~/.bash_completionor source it from there.