overwrite and reuse existing function in zsh
I would like to slightly extend a zsh completion function.
I would like to slightly extend a zsh completion function.
In bash, sometimes I would like to reuse a function in several scripts.
Is it bad to repeat the definition of the function in all the scripts?
If so, what is some good practice?
How can I write a function in zsh that invokes an existing command with the same name as the function itself? For example, I’ve tried this to illustrate my question:
This is my code