I have a bunch of tools that pass all arguments to an internal invocation of e.g. "git log". A trivial example might look like:
#!/usr/bin/env zsh
git log --since='1 year ago' "$@"
I know that I can have completion aliases by doing e.g.:
compdef myscript=grep
However, it's not clear how to do this for subcommands like git log
. Is there a way to do this?