9 ms·
Most of my scripts start with that template on 4.20.1. That's the baseline. But soon enough they have 4.22 and 4.25. I never liked those "bare minimum template
by rgrau 5y ago
Most of my scripts start with that template on 4.20.1. That's the baseline. But soon enough they have 4.22 and 4.25.
I never liked those "bare minimum templates" that are 100 lines, because usually the scripts I write start being just a couple dozen lines. If they grow, I add things on a need basis, but the ratio of logic/template has to be >0 always.
wrt completions, doing smart completions is hard, and the zsh ones are not very intuitive to me. I try to make my scripts work with "compdef _gnu_generic ". It goes a long way, and it's an incentive to write proper --help