2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

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)
This commit is contained in:
sammyette 2021-06-11 21:49:28 -04:00
parent efc956a04c
commit a4dbfbf4bb
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -25,6 +25,7 @@ func HilbishLoader(L *lua.LState) int {
L.SetField(mod, "ver", lua.LString(version))
L.SetField(mod, "user", lua.LString(curuser.Username))
L.SetField(mod, "host", lua.LString(host))
L.SetField(mod, "home", lua.LString(homedir))
L.Push(mod)