fix: add docs for hilbish.xdg

dev
TorchedSammy 2021-11-25 22:24:35 -05:00
parent e8a69d36bb
commit 12910ba724
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 2 deletions

View File

@ -41,10 +41,11 @@ func HilbishLoader(L *lua.LState) int {
util.SetField(L, mod, "login", lua.LBool(interactive), "Whether this is a login shell")
xdg := L.NewTable()
L.SetField(xdg, "config", lua.LString(confDir))
L.SetField(xdg, "data", lua.LString(getenv("XDG_DATA_HOME", homedir + "/.local/share")))
util.SetField(L, xdg, "config", lua.LString(confDir), "XDG config directory")
util.SetField(L, xdg, "data", lua.LString(getenv("XDG_DATA_HOME", homedir + "/.local/share")), "XDG data directory")
L.SetField(mod, "xdg", xdg)
util.Document(L, xdg, "Variables for the XDG base directory spec.")
util.Document(L, mod, "A miscellaneous sort of \"core\" API for things that relate to the shell itself and others.")
L.Push(mod)