diff --git a/internal/config/config.go b/internal/config/config.go index e795bb5..925bde3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -47,6 +47,9 @@ var ( func writeConfig() string { prefConfigLocation, _ := os.UserConfigDir() + if prefConfigLocation != "" { + prefConfigLocation = filepath.Join(prefConfigLocation, Title) + } if prefConfigLocation == "" { home, _ = os.UserHomeDir() @@ -59,6 +62,7 @@ func writeConfig() string { os.Exit(1) } } + Filename = filepath.Join(prefConfigLocation, "config.toml") tomld, terr := toml.Parser().Marshal(snek.All())