pkgxdev / pkgx

the last thing you’ll install

Home Page:https://pkgx.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PATH env var in pkgx.yaml breaking $PATH

sporkd opened this issue · comments

Defining a PATH env var in pkgx.yaml causes all other pkgx entries to be lost from my $PATH. Best way to illustrate is with two sessions:

First when a PATH env var is defined

Screenshot 2023-10-27 at 4 09 58 PM

Yarn is not in my path until I run env to reload it.

But commenting out the PATH env var fixes the problem

Screenshot 2023-10-27 at 4 07 31 PM

Now yarn is in my path without reloading the env 👍

hmm sorry, I'm surprised it doesn't work. Will fix.

No need to apologize @mxcl😃. Just trying to help out by documenting things.

So I plan to fix this today by only accepting ${FOO} or $FOO. I don’t know a shell that this doesn’t work for, but if in future there are shells it doesn’t we can convert those syntaxes.

Then if other ideas for what can be supported emerge we can whitelist them.

IMO if you want more power than that you use something like direnv.

my bad managed to mix this one up with #842