mirror of https://github.com/Hilbis/Hilbish
Fix formatting
parent
f18c780e53
commit
b3fe72469e
|
@ -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)
|
||||
|
|
2
main.go
2
main.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue