mirror of https://github.com/Hilbis/Hilbish
feat: add hilbish.home
`hilbish.home` is the user's home directory path this is a cross platform variable that works instead of using `$HOME` (which isnt set in windows cmd, i think)pull/61/head
parent
efc956a04c
commit
a4dbfbf4bb
|
@ -25,6 +25,7 @@ func HilbishLoader(L *lua.LState) int {
|
||||||
L.SetField(mod, "ver", lua.LString(version))
|
L.SetField(mod, "ver", lua.LString(version))
|
||||||
L.SetField(mod, "user", lua.LString(curuser.Username))
|
L.SetField(mod, "user", lua.LString(curuser.Username))
|
||||||
L.SetField(mod, "host", lua.LString(host))
|
L.SetField(mod, "host", lua.LString(host))
|
||||||
|
L.SetField(mod, "home", lua.LString(homedir))
|
||||||
|
|
||||||
L.Push(mod)
|
L.Push(mod)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue