Following on from this question:
bash-function-preserving-tab-completion
It shows that by adding into .bashrc:
mj() {
make -j10 $@
}
complete -F _make mj
When I run mj <tab>
I get "function _make not found"
But then when I run make <tab>
(which loads the completion for make) then when I run mj <tab>
it works fine.
So how can I force make completion to load withouth having to manually type make <tab>
first?