2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

fix: properly default config dir to xdg dir

This commit is contained in:
sammyette 2021-10-13 10:41:55 -04:00
parent d58617b173
commit b387b18923
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -43,7 +43,7 @@ func main() {
if defaultConfDir == "" {
// we'll add *our* default if its empty (wont be if its changed comptime)
if _, err := os.Stat(filepath.Join(confDir, "hilbish", "hilbishrc.lua")); os.IsNotExist(err) {
if _, err := os.Stat(filepath.Join(confDir, "hilbish")); os.IsNotExist(err) {
defaultConfPath = filepath.Join(homedir, "/.hilbishrc.lua")
} else {
defaultConfPath = filepath.Join(confDir, "hilbish", "hilbishrc.lua")