How can I setup completion for a function, based on existing completion definitions and default arguments.
A simplified example (which could be rewritten as an alias):
gpl() {
git pull origin $@
}
This should have the same completion as after git pull origin.
This massages the
$words,$serviceand$CURRENTvars used by the completion system, and then calls the_gitcompletion function.(Thanks to Mikachu on #zsh).