From a4dbfbf4bbe8a288139861b8af80ab42a45f0f21 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Fri, 11 Jun 2021 21:49:28 -0400 Subject: [PATCH] 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) --- hilbish.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hilbish.go b/hilbish.go index c1942ce..003d0b4 100644 --- a/hilbish.go +++ b/hilbish.go @@ -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)