
▲ 6 r/lua
no os.setenv and I wanted a vim.env polyfill. Made one.
https://github.com/BirdeeHub/lua-osenv feel free to use it too if you want.
It is 1 C file <250 lines, with a nice interface, use the makefile, luarocks, nix, or write the c compiler command to build, requires C compiler and lua.
Edit: now actually runs the tests on windows too
u/no_brains101 — 9 days ago