pkgx icon indicating copy to clipboard operation
pkgx copied to clipboard

add hook to reload the env when prompt is displayed, or give user a headsup

Open magnusviri opened this issue 2 years ago • 4 comments

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.

magnusviri avatar Mar 29 '23 23:03 magnusviri

related to: https://github.com/teaxyz/cli/issues/484#issuecomment-1489283790

jhheider avatar Mar 29 '23 23:03 jhheider

Yeah this is a bug in tea/cli

mxcl avatar Mar 30 '23 12:03 mxcl

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.

mxcl avatar Jul 12 '23 14:07 mxcl

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.

rawkode avatar Aug 10 '23 22:08 rawkode