mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
we're now loading a config file!
This commit is contained in:
parent
86a01bbcf2
commit
9e55195f8d
6 changed files with 112 additions and 45 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue