we're now loading a config file!

This commit is contained in:
Squibid 2025-10-22 14:23:30 -04:00
parent 86a01bbcf2
commit 9e55195f8d
Signed by: squibid
GPG key ID: BECE5684D3C4005D
6 changed files with 112 additions and 45 deletions

View file

@ -1 +1,11 @@
print("hello from our runtime file")
local env_conf = os.getenv("XDG_CONFIG_HOME")
if not env_conf then
env_conf = os.getenv("HOME")
if not env_conf then
error("Couldn't determine potential config directory is $HOME set?")
end
env_conf = env_conf.."/.config/"
end
mez.path.config = env_conf.."/mez/init.lua"
package.path = package.path..";"..env_conf.."/mez/lua/?.lua"