zsh completion for `tea +pkg`
The results can be obtained with:
cd $(tea --prefix)/tea.xyz/var/pantry/projects
find * -name package.yml -type f -exec dirname {} \;
My brain thinks this is the same as:
find $(tea --prefix)/tea.xyz/var/pantry/projects -name package.yml -type f -exec dirname {} \; | sed -e "s|$(tea --prefix)/tea.xyz/var/pantry/projects/||"
which replaces the cd with a second invocation of tea and requires sed. Probably not better, but cd can add weirdness. My shell also doesn't know surname (but I'm not using zsh).
Provided it operates in a subshell the cd is safe. I prefer doing less and relying on sed with its platform specific quirks seems riskier.
Yeah, agreed. The final form might be profitably added to the client as tea --completions.
This should be added to --magic
Closing in lieu of #591