Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
496 stars 21 forks source link

fix!: get/set env variables via env table #294

Open TorchedSammy opened 3 months ago

TorchedSammy commented 3 months ago

this is a breaking change. only merge this on a new major version (hilbish 3)

this removes the old "virtual global table" which allows getting environment variables via just their names in lua.

this means: an environment variable (like TERM) would need to be accessed via the env table instead of just using TERM in lua.

TERM -> env.TERM they can also be set via `env.VARIABLE = 'value'