Fix formatting

pull/68/head
L3af 2021-10-07 06:05:00 +13:00
parent f18c780e53
commit b3fe72469e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func HilbishLoader(L *lua.LState) int {
L.SetField(mod, "user", lua.LString(username))
L.SetField(mod, "host", lua.LString(host))
L.SetField(mod, "home", lua.LString(homedir))
L.SetField(mod, "xdgConfig", lua.LString(getenv("XDG_CONFIG_HOME", homedir + "/.config")))
L.SetField(mod, "xdgConfig", lua.LString(confDir))
L.SetField(mod, "xdgData", lua.LString(getenv("XDG_DATA_HOME", homedir + "/.local/share/")))
L.Push(mod)

View File

@ -46,7 +46,7 @@ func main() {
if _, err := os.Stat(filepath.Join(confDir, "hilbish", "hilbishrc.lua")); os.IsNotExist(err) {
defaultConfPath = filepath.Join(homedir, "/.hilbishrc.lua")
} else {
defaultConfPath = filepath.Join(confDir, "hilbish", "hilbishrc.lua")
defaultConfPath = filepath.Join(confDir, "hilbish", "hilbishrc.lua")
}
} else {
// else do ~ substitution