add hook to reload the env when prompt is displayed, or give user a headsup
I ran tea --sync, which update brewkit 0.11.x to 0.12.0, but it took me awhile to figure out I needed to cd out of my pantry and back in to start using the newer version.
related to: https://github.com/teaxyz/cli/issues/484#issuecomment-1489283790
Yeah this is a bug in tea/cli
the main issue I have implementing this is performance. We could do it easily today but it will mean everytime the prompt displays there is the overhead of tea’s startup time which is slow and deno-dependent.
What if tea stored the hash of every tea.yaml (or package.json, cargo.toml with frontmatter) in ~/.tea and when it was different from what's currently on disk, present the changes and optionally sync?
This is what direnv does.